The message seems a little cryptic, but the is not valid answer explains it. namespace_id is the id of the namespace, where namespace your username or an organization you can create repos to. When you first create a repo you are presented with a json object like so: { "archived" : false, "me… Answer from axil on forum.gitlab.com
🌐
GitLab
docs.gitlab.com › gitlab docs › extend › rest api › resources › projects
Projects API | GitLab Docs
curl --request POST --header "PRIVATE-TOKEN: <your-token>" \ --header "Content-Type: application/json" --data '{ "name": "new_project", "description": "New Project", "path": "new_project", "namespace_id": "42", "initialize_with_readme": "true"}' \ --url "https://gitlab.example.com/api/v4/projects/" To set the visibility level of individual project features, see Project feature visibility level. ... mr_default_title_template introduced in GitLab 18.11 with a feature flag named mr_default_title_template. Disabled by default. Feature flag mr_default_title_template removed in GitLab 19.0. Creates a project for a user.
REST API
Create custom tools to manage your GitLab resources at scale without manual intervention. Improve collaboration by integrating GitLab data directly into your applications. Manage CI/CD processes across multiple projects with precision. Control user access programmatically to maintain consistent permissions across your organization. The REST API ...
Commits
The created_at field exists solely for consistency with other GitLab APIs. It is always identical to the committed_date field. The committed_date and authored_date fields are generated from different sources, and may not be identical. For performance reasons, GitLab does not return the following headers in Commits API responses: ... For more information, see issue 389582. ... Get a list of repository commits in a project...
Resources
The GitLab REST API gives you programmatic control over GitLab resources. Build integrations with your existing tools, automate repetitive tasks, and extract data for custom reports. Access and manipulate projects, groups, issues, and merge requests without using the web interface. ... Automate project creation ...
Webhooks
Configure and manage project and group webhooks in GitLab.
🌐
GitLab
forum.gitlab.com › how to use gitlab
Create a new project in a group using API - How to Use GitLab - GitLab Forum
August 19, 2015 - I'm kind of new to the GitLab experience and I'm wanting to automate the local repo creation process with a Linux command line command that will create a project in GitLab using the API. I found the documentation hard t…
Discussions

Creating a new repo using the API?
This helped, thanks u/davispw ! For anyone trying to achieve the same and looking for an example, here's one: curl --header "PRIVATE-TOKEN: your_access_token" https://gitlab.com/api/v4/projects --data "name=repo-name-to-be-created" If making a POST request through other means, the PRIVATE-TOKEN needs to be passed as a key and the token as the value in the header, e.g 5Y48rGCQSWtL8rAtGCmy The body of the request can be sent as JSON (adjust the content type of you header): {"name": "repo-name-to-be-created"} Or add the parameters to the request URL: https://gitlab.com/api/v4/projects?path=repo-name-to-be-created To find out the parameters this endpoint can accept see: https://docs.gitlab.com/ee/api/projects.html#create-project More on reddit.com
🌐 r/gitlab
3
1
April 10, 2020
API (v4) Creating New Project Within Group
I can successfully create a project ... using: curl --request GET --header 'Private-Token: MY_TOKEN' https://gitlab.com/api/v4/groups/my-cool-group/projects However, I can’t use a POST method to create a project within my gro...... More on forum.gitlab.com
🌐 forum.gitlab.com
1
0
January 21, 2020
API: create project from template
Creation of a project coming from a Template with the API Hello, I would like to create a project from a template project using the API but when creating I always have an empty project. Via the GUI I can do it very well but impossible with the API. exemple: curl -v -X POST --header "PRIVATE-TOKEN: ... More on forum.gitlab.com
🌐 forum.gitlab.com
0
0
July 31, 2020
How to get a list of all your Gitlab personal projects via API?
My favourite would probably be https://gitlab.com/api/v4/projects?search=$your_username&search_namespaces=true However, that returns a 500 error for me :/ Alternatively you could do https://gitlab.com/api/v4/projects?owned=true , then iterate through the results and only keep those were the namespace.id matches your personal namespace. More on reddit.com
🌐 r/gitlab
3
3
June 17, 2022
🌐
GitLab
docs.gitlab.com › gitlab docs › extend › rest api › resources
REST API resources | GitLab Docs
The GitLab REST API gives you programmatic control over GitLab resources. Build integrations with your existing tools, automate repetitive tasks, and extract data for custom reports. Access and manipulate projects, groups, issues, and merge requests without using the web interface. ... Automate project creation and user management.
🌐
DZone
dzone.com › testing, deployment, and maintenance › deployment › using the gitlab rest api to create a git projects
Using the GitLab REST API to Create a Git Projects
October 4, 2019 - One of the aims of each IT team is using automation as much as possible for repetitive tasks such as creating groups and projects and assigning people to projects, among other things. This is when the REST API comes in handy. Let's imagine we want to create a project called “hello-world-project-01” and we want to organize the repository under some logical structure like “my-programme -> fintech.” Then, as per the gitflow definition, the repository will have a minimum of three branches: master, develop, and feature branch.
🌐
Python GitLab
python-gitlab.readthedocs.io › en › stable › gl_objects › projects.html
Projects - python-gitlab v8.5.0 - Read the Docs
# https://docs.gitlab.com/api/repository_files#get-file-from-repository print(headers["X-Gitlab-Size"]) ... raw_content = project.files.raw(file_path='README.rst', ref='main') print(raw_content) with open('/tmp/raw-download.txt', 'wb') as f: project.files.raw(file_path='README.rst', ref='main', streamed=True, action=f.write) ... f = project.files.create({'file_path': 'testfile.txt', 'branch': 'main', 'content': file_content, 'author_email': 'test@example.com', 'author_name': 'yourname', 'commit_message': 'Create testfile'})
Find elsewhere
🌐
GitLab
forum.gitlab.com › how to use gitlab
API (v4) Creating New Project Within Group - How to Use GitLab - GitLab Forum
January 21, 2020 - How do I create a new project within a group using the API? I can successfully create a project for my user: curl --request POST --header 'Private-Token: MY_TOKEN' --header "Content-Type: application/json" --data '{"name":"my-cool-project"}' https://gitlab.com/api/v4/projects I can read projects for my group using: curl --request GET --header 'Private-Token: MY_TOKEN' https://gitlab.com/api/v4/groups/my-cool-group/projects However, I can’t use a POST method to create a project within my gro...
🌐
GitLab
docs.gitlab.com › 12.10 › ee › api › projects.html
Sign in · GitLab
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences, or your device, and is mostly used to make the site work as you expect. The information does not usually identify you directly, ...
🌐
Android Experto
androidexperto.com › home › using the gitlab rest api to create git projects
Using the GitLab REST API to Create Git Projects
May 25, 2026 - Instead of clicking through the ... initialization options, and governance-friendly defaults. The GitLab API exposes a dedicated project creation endpoint that accepts authenticated HTTP requests with a structured payload....
🌐
GitLab
forum.gitlab.com › how to use gitlab
API: create project from template - How to Use GitLab - GitLab Forum
July 31, 2020 - Creation of a project coming from a Template with the API Hello, I would like to create a project from a template project using the API but when creating I always have an empty project. Via the GUI I can do it very well but impossible with the API. exemple: curl -v -X POST --header "PRIVATE-TOKEN: ${TOKEN} “https://
🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › organize work with projects › create a project
Create a project | GitLab Docs
Select Create blank project. ... Project name: Enter the name of your project. For more information, see naming rules. Project slug: Enter the path to your project. GitLab uses the slug as the URL path.
🌐
GitLab
gitlab.msu.edu › help › help
Projects · Api · Help · GitLab
curl --request POST --header ...with_readme": "true"}' \ --url "https://gitlab.example.com/api/v4/projects/" ... Create a project for a user....
🌐
Rewind
rewind.com › home › blog › backup blogs
Using the GitLab API | Rewind
September 3, 2024 - It is important to note that it is also possible to use personal or project tokens with OAuth2 compliant headers. That would look something like this: curl --header "Authorization: Bearer &lt;your_access_token>" "https://gitlab.example.com/api/v4/projects"
🌐
YouTube
youtube.com › gitlab unfiltered
How to make GitLab API calls - YouTube
Referenced docs: https://docs.gitlab.com/ee/api/README.html#basic-usageAlso see Marcin's demo using Insomnia: https://youtu.be/WnibP89VVmU
Published: January 28, 2021
Views: 81K
🌐
Medium
medium.com › devops-with-valentine › how-to-use-the-gitlab-rest-api-ba4e4ca1fcae
How to use the GitLab REST API. The GitLab API allows you to perform… | by Valentin Despa | DevOps with Valentine | Medium
September 24, 2021 - How to use the GitLab REST API The GitLab API allows you to perform many of the actions you typically do when using the user interface. Using the API allows us to automate the process and eliminate …
🌐
Python GitLab
python-gitlab.readthedocs.io › en › stable › api-usage.html
Using the REST API - python-gitlab v8.5.0
These objects are created locally using a known ID, and give access to other managers and methods. The following example will only make one API call to the GitLab server to star a project (the previous example used 2 API calls):
🌐
Gitlab
gitlab-org.gitlab.io › professional-services-automation › tools › migration › congregate › reference › congregate › migration › gitlab › api › projects
projects.py - Congregate
Source code in congregate/migration/gitlab/api/projects.py ... :param: host: (str) GitLab host URL :param: token: (str) Access token to GitLab instance :param: pid: (str) GitLab project ID :param: data: (dict) Object containing the necessary data for creating an environment.