Warehouse Transfer API
POST/api/v5/repos/:owner/:repo/transfer
Request
Path Parameters
owner stringrequired
Repository space address (organization or individual's address path)
repo stringrequired
Repository path (path)
Query Parameters
access_token stringrequired
User authorization code
- application/json
Body
new_ownerstringrequired
The target organization to transfer to.
Responses
- 200
Successful Response
Response Headers
- application/json
- Schema
- Example (auto)
- 1
Schema
new_ownerstring
new_namestring
{
"new_owner": "string",
"new_name": "string"
}
Successful Example
{
"new_owner": "tiandi",
"new_name": "new_repo_name"
}