Add labels to an issue
curl --request POST \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/issues/{index}/labels \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"labels": [
123
]
}
'[
{
"id": 123,
"name": "<string>",
"color": "<string>",
"url": "<string>"
}
]Issues
Add labels to an issue
POST
/
repos
/
{owner}
/
{repo}
/
issues
/
{index}
/
labels
Add labels to an issue
curl --request POST \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/issues/{index}/labels \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"labels": [
123
]
}
'[
{
"id": 123,
"name": "<string>",
"color": "<string>",
"url": "<string>"
}
]Authorizations
Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Path Parameters
Repository owner
Repository name
Issue index
Body
application/json