Skip to content

Add a label to an issue

POST
/repos/{owner}/{repo}/issues/{index}/labels
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

index
required
integer format: int64

Index of the issue

Media type application/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
Example generated
{
"labels": [
"example"
],
"updated_at": "2026-04-15T12:00:00Z"
}

LabelListWithoutPagination - Labels for a specific issue (no pagination headers)

Media type application/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 type application/json
object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

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