Repository Manipulation
Transfer ownership
Transfer repository ownership or attach to an organization.
Two modes of operation:
- Transfer ownership within an organization: Provide new_owner_user_id to change the repository owner to another user in the same organization
- Transfer personal repo to organization: Provide target_organization_id to attach a personal repository to an organization
Exactly one of new_owner_user_id or target_organization_id must be provided.
post/repos/{repo_id}/transfer
Request
- Base URLhttps://api.diversion.dev/v0
- AuthOAuth 2Implicithttps://auth.diversion.dev/oauth2/authorizeScopescoreapi/write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Repository transferred successfully
Example response
{
"repo_name": "repo-name",
"repo_id": "example_id"
}Changes
No recorded changes to this operation across all 1 revision of this API.