仓库转移
POST/api/v5/repos/:owner/:repo/transfer
Request
Path Parameters
owner stringrequired
仓库所属空间地址(组织或个人的地址path)
repo stringrequired
仓库路径(path)
Query Parameters
access_token stringrequired
用户授权码
- application/json
Body
new_ownerstringrequired
要转移到的目标组织
Responses
- 200
成功响应
Response Headers
- application/json
- Schema
- Example (auto)
- 1
Schema
new_ownerstring
new_namestring
{
"new_owner": "string",
"new_name": "string"
}
成功示例
{
"new_owner": "tiandi",
"new_name": "new_repo_name"
}