Transfer a project to the group namespace. Available only for admin.
POST
/v3/groups/{id}/projects/{project_id}Transfer a project to the group namespace. Available only for admin.
请求参数
Path 参数
id
string
必需
The ID of a group
project_id
string
必需
The ID or path of the project
示例代码
返回响应
成功(201)
HTTP 状态码: 201
内容格式: JSONapplication/json
Transfer a project to the group namespace. Available only for admin.
数据结构
Transfer a project to the group namespace. Available only for admin.
id
string
可选
name
string
可选
path
string
可选
description
string
可选
visibility_level
string
可选
lfs_enabled
string
可选
avatar_url
string
可选
web_url
string
可选
request_access_enabled
string
可选
statistics
string
可选
projects
object (Project)
可选
Unstar a project
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
object (UserBasic)
可选
Get a single user
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
object (Namespace)
可选
Get a namespaces list
forked_from_project
object (BasicProjectDetails)
可选
Get all projects for admin user
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
object (ProjectStatistics)
可选
shared_projects
object (Project)
可选
Unstar a project
示例
{
"id": "string",
"name": "string",
"path": "string",
"description": "string",
"visibility_level": "string",
"lfs_enabled": "string",
"avatar_url": "string",
"web_url": "string",
"request_access_enabled": "string",
"statistics": "string",
"projects": {
"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"
}
},
"shared_projects": {
"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"
}
}
}
最后修改时间: 1 个月前