Update a label
PATCH /repos/:owner/:repo/labels/:name
Parameters
| Name |
Type |
Description |
new_name |
string |
The new 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.com. |
color |
string |
The hexadecimal color code for the label, without the leading #. |
description |
string |
A short description of the label. |
Example
{
"new_name": "bug :bug:",
"description": "Small bug fix required",
"color": "b01f26"
}
Response
{
"id": 208045946,
"node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
"url": "https://api.github.com/repos/octocat/Hello-World/labels/bug%20:bug:",
"name": "bug :bug:",
"description": "Small bug fix required",
"color": "b01f26",
"default": true
}