Update an existing project
PUT
/v3/projects/{id}Update an existing project
请求参数
The ID of a project
The name of the project
The default branch of the project
The path of the repository
The description of the project
Flag indication if the issue tracker is enabled
Flag indication if merge requests are enabled
Flag indication if the wiki is enabled
Flag indication if builds are enabled
Flag indication if snippets are enabled
Flag indication if shared runners are enabled for that project
Flag indication if the container registry is enabled for that project
Flag indication if Git LFS is enabled for that project
Create a public project. The same as visibility_level = 20.
Create a public project. The same as visibility_level = 20.
Perform public builds
Allow users to request member access
Only allow to merge if builds succeed
Only allow to merge if all discussions are resolved
示例代码
返回响应
Update an existing project
Get a single user
Get a namespaces list
Get all projects for admin user
{
"id": "string",
"description": "string",
"default_branch": "string",
"tag_list": "string",
"public": "string",
"archived": "string",
"visibility_level": "string",
"ssh_url_to_repo": "string",
"http_url_to_repo": "string",
"web_url": "string",
"owner": {
"name": "string",
"username": "string",
"id": "string",
"state": "string",
"avatar_url": "string",
"web_url": "string"
},
"name": "string",
"name_with_namespace": "string",
"path": "string",
"path_with_namespace": "string",
"container_registry_enabled": "string",
"issues_enabled": "string",
"merge_requests_enabled": "string",
"wiki_enabled": "string",
"builds_enabled": "string",
"snippets_enabled": "string",
"created_at": "string",
"last_activity_at": "string",
"shared_runners_enabled": "string",
"lfs_enabled": "string",
"creator_id": "string",
"namespace": {
"id": "string",
"name": "string",
"path": "string",
"kind": "string"
},
"forked_from_project": {
"id": "string",
"http_url_to_repo": "string",
"web_url": "string",
"name": "string",
"name_with_namespace": "string",
"path": "string",
"path_with_namespace": "string"
},
"avatar_url": "string",
"star_count": "string",
"forks_count": "string",
"open_issues_count": "string",
"runners_token": "string",
"public_builds": "string",
"shared_with_groups": "string",
"only_allow_merge_if_build_succeeds": "string",
"request_access_enabled": "string",
"only_allow_merge_if_all_discussions_are_resolved": "string",
"statistics": {
"commit_count": "string",
"storage_size": "string",
"repository_size": "string",
"lfs_objects_size": "string",
"build_artifacts_size": "string"
}
}