v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
issue

Update a label

patch/repos/{owner}/{repo}/labels/{id}

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

idinteger required

id of the label to edit

Request body

colorstring
descriptionstring

Description provides additional context about the label's purpose

exclusiveboolean
is_archivedboolean
namestring

Name is the new display name for the label

Example request

{
  "color": "#00aabb"
}

Response

Label

colorstring
descriptionstring

Description provides additional context about the label's purpose

exclusiveboolean
idinteger

ID is the unique identifier for the label

is_archivedboolean
namestring

Name is the display name of the label

urlstring

URL is the API endpoint for accessing this label

Example response

{
  "color": "00aabb"
}