apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{owner}/{repo}/git/refs — GitHub API

GitHub playground

Create a reference

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

2 body fields
  • ref · required · string — The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.
  • sha · required · string — The SHA1 value for this reference.