Set labels for an issue
PUT {{baseUrl}}/repos/:owner/:repo/issues/:issue_number/labels
Removes any previous labels and sets the new labels for an issue.
Request Body
{"labels"=>["<string>", "<string>"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
[{"id":208045946,"node_id":"MDU6TGFiZWwyMDgwNDU5NDY=","url":"https://api.github.com/repos/octocat/Hello-World/labels/bug","name":"bug","description":"Something isn't working","color":"f29513","default":true},{"id":208045947,"node_id":"MDU6TGFiZWwyMDgwNDU5NDc=","url":"https://api.github.com/repos/octocat/Hello-World/labels/enhancement","name":"enhancement","description":"New feature or request","color":"a2eeef","default":false}]