issue

Add a label to an issue

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

Request

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

Changes

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the non-success response with the status