issues
Add labels to an issue
Adds labels to an issue.
post/repos/{owner}/{repo}/issues/{issue_number}/labels
Path parameters
ownerstring required
The account owner of the repository. The name is not case sensitive.
repostring required
The name of the repository without the .git extension. The name is not case sensitive.
issue_numberinteger required
The number that identifies the issue.
Request body
Response
Response
Example response
[
{
"id": 208045946,
"node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
"url": "https://api.github.com/repositories/42/labels/bug",
"name": "bug",
"description": "Something isn't working",
"color": "FFFFFF",
"default": true
}
]Changes
Changed in 1 of the 62 revisions of this API.11
- ▲
removed
subschema #1subschema #3from the request bodyoneOflistrequest-body-one-of-removed
- ○
added
subschema #1subschema #3to the request bodyoneOflistrequest-body-one-of-added
- ▲
Of the 62 revisions, 1 has no diff computed.