apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{owner}/{repo}/branches/{branch}/rename — GitHub API

GitHub playground

Rename a branch

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

1 body fields
  • new_name · required · string — The new name of the branch.