Repositories

Transfer a repository

Moves the repository to a new owner and optionally renames it. GitHub sync moves with it when the person who configured it transfers it; otherwise synchronization pauses. repoId and expectedVersion fence stale requests. Requires authenticated authority and enforces current resource policy.

post/api/repos/{owner}/{repo}/transfer

Request

  • Base URL
    https://git.cafe
  • Auth
    • API key in cookie gc-session
    • or HTTP bearer
    • or HTTP basic
    • or HTTP token
    • or OAuth 2
      Authorization code: /api/oauth/authorize
      Token URL: /api/oauth/token scopes: repo:administration:admin

Path parameters

ownerstring required
repostring required

Request body

repoIdstring required
expectedVersioninteger required
newOwnerstring required
newNamestring

Response

Response for status 200

idstring required
ownerstring required
namestring required
syncPausedboolean required
versioninteger required

Changes

No recorded changes to this operation across all 1 revision of this API.