Create a label
/repos/{owner}/{repo}/labels- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
Body Params
requiredThe [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.
A short description of the label. Must be 100 characters or fewer.
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 . For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."
Responses
Response
Headers
Example: https://api.github.com/repos/octocat/Hello-World/labels/bug
6-character hex code, without the leading #, identifying the color
Example: FFFFFF
Example: true
Example: Something isn't working
Example: 208045946
The name of the label.
Example: bug
Example: MDU6TGFiZWwyMDgwNDU5NDY=
URL for the label
Example: https://api.github.com/repositories/42/labels/bug
Resource not found
Validation failed