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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

[{&quot;id&quot;:208045946,&quot;node_id&quot;:&quot;MDU6TGFiZWwyMDgwNDU5NDY=&quot;,&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/labels/bug&quot;,&quot;name&quot;:&quot;bug&quot;,&quot;description&quot;:&quot;Something isn&#39;t working&quot;,&quot;color&quot;:&quot;f29513&quot;,&quot;default&quot;:true},{&quot;id&quot;:208045947,&quot;node_id&quot;:&quot;MDU6TGFiZWwyMDgwNDU5NDc=&quot;,&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/labels/enhancement&quot;,&quot;name&quot;:&quot;enhancement&quot;,&quot;description&quot;:&quot;New feature or request&quot;,&quot;color&quot;:&quot;a2eeef&quot;,&quot;default&quot;:false}]