apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{owner}/{repo}/transfer — GitHub API

GitHub playground

Transfer a repository

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

3 body fields
  • new_owner · required · string — The username or organization name the repository will be transferred to.
  • new_name · optional · string — The new name to be given to the repository.
  • team_ids · optional · integer[] — ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.