apicheats.dev Cheat sheet Raw .md
POST

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

GitHub playground

Create a label

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
  • name · required · string — The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."
  • color · optional · string — The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.
  • description · optional · string — A short description of the label. Must be 100 characters or fewer.