curl --request POST \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/labels \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"color": "<string>"
}
'{
"id": 123,
"name": "<string>",
"color": "<string>",
"url": "<string>"
}curl --request POST \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/labels \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"color": "<string>"
}
'{
"id": 123,
"name": "<string>",
"color": "<string>",
"url": "<string>"
}Personal access token. Use format: token {YOUR_ACCESS_TOKEN}