Add a label to an issue
POST
/repos/{owner}/{repo}/issues/{index}/labels
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”owner
required
string
Owner of the repo
repo
required
string
Name of the repo
index
required
integer format: int64
Index of the issue
Request Body
Section titled “Request Body”Media typeapplication/json
IssueLabelsOption a collection of labels
object
labels
Labels can be a list of integers representing label IDs or a list of strings representing label names
Array
updated_at
string format: date-time
Examplegenerated
{ "labels": [ "example" ], "updated_at": "2026-04-15T12:00:00Z"}Responses
Section titled “Responses”LabelListWithoutPagination - Labels for a specific issue (no pagination headers)
Media typeapplication/json
Array<object>
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 }]APIForbiddenError is a forbidden error response
Media typeapplication/json
object
message
string
url
string
Examplegenerated
{ "message": "example", "url": "example"}APINotFound is a not found error response
Media typeapplication/json
object
errors
Array<string>
message
string
url
string
Examplegenerated
{ "errors": [ "example" ], "message": "example", "url": "example"}