v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
issue

Add a label to an issue

post/repos/{owner}/{repo}/issues/{index}/labels

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

indexinteger required

index of the issue

Request body

Response

LabelList

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"
  }
]