Update a label
PATCH
/orgs/{org}/labels/{id}
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” org
required
string
Name of the organization
id
required
integer format: int64
Id of the label to edit
Request Body
Section titled “ Request Body ” Media type application/json
EditLabelOption options for editing a label
object
color
string
Example
#00aabb description
string
exclusive
boolean
Example
false is_archived
boolean
Example
false name
string
Responses
Section titled “ Responses ”Label
Media type application/json
Label a label to an issue or a pr
object
color
string
description
string
exclusive
boolean
id
integer format: int64
is_archived
boolean
name
string
url
string
Example
{ "color": "00aabb", "exclusive": false, "is_archived": false}APINotFound is a not found error response
Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{ "errors": [ "example" ], "message": "example", "url": "example"}APIValidationError is error format response related to input validation
Media type application/json
object
message
string
url
string
Example generated
{ "message": "example", "url": "example"}