Create new project for a specified user. Only available to admin users.
POST
/v3/projects/user/{user_id}
projects
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://gitlab.com/api/v3/projects/user/' \
--data-urlencode 'name='
Response Response Example
{
"archived": "string",
"avatar_url": "string",
"builds_enabled": "string",
"container_registry_enabled": "string",
"created_at": "string",
"creator_id": "string",
"default_branch": "string",
"description": "string",
"forked_from_project": {
"http_url_to_repo": "string",
"id": "string",
"name": "string",
"name_with_namespace": "string",
"path": "string",
"path_with_namespace": "string",
"web_url": "string"
},
"forks_count": "string",
"http_url_to_repo": "string",
"id": "string",
"issues_enabled": "string",
"last_activity_at": "string",
"lfs_enabled": "string",
"merge_requests_enabled": "string",
"name": "string",
"name_with_namespace": "string",
"namespace": {
"id": "string",
"kind": "string",
"name": "string",
"path": "string"
},
"only_allow_merge_if_all_discussions_are_resolved": "string",
"only_allow_merge_if_build_succeeds": "string",
"open_issues_count": "string",
"owner": {
"avatar_url": "string",
"id": "string",
"name": "string",
"state": "string",
"username": "string",
"web_url": "string"
},
"path": "string",
"path_with_namespace": "string",
"public": "string",
"public_builds": "string",
"request_access_enabled": "string",
"runners_token": "string",
"shared_runners_enabled": "string",
"shared_with_groups": "string",
"snippets_enabled": "string",
"ssh_url_to_repo": "string",
"star_count": "string",
"statistics": {
"build_artifacts_size": "string",
"commit_count": "string",
"lfs_objects_size": "string",
"repository_size": "string",
"storage_size": "string"
},
"tag_list": "string",
"visibility_level": "string",
"web_url": "string",
"wiki_enabled": "string"
}
Request
Path Params
user_id
integerÂ
required
Body Params application/x-www-form-urlencoded
name
stringÂ
required
default_branch
stringÂ
optional
description
stringÂ
optional
issues_enabled
stringÂ
optional
merge_requests_enabled
stringÂ
optional
wiki_enabled
stringÂ
optional
builds_enabled
stringÂ
optional
snippets_enabled
stringÂ
optional
shared_runners_enabled
stringÂ
optional
container_registry_enabled
stringÂ
optional
lfs_enabled
stringÂ
optional
public
stringÂ
optional
visibility_level
integerÂ
optional
public_builds
stringÂ
optional
request_access_enabled
stringÂ
optional
only_allow_merge_if_build_succeeds
stringÂ
optional
only_allow_merge_if_all_discussions_are_resolved
stringÂ
optional
namespace_id
integerÂ
optional
import_url
stringÂ
optional
Responses
Modified at 2023-08-15 04:14:33