跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
Support
This is the documentation of 22.6.1, which is no longer the latest release. See the latest release.

Update a label

PATCH
/orgs/{org}/labels/{id}
curl --request PATCH \
--url https://gitea.example.com/api/v1/orgs/example/labels/1 \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "color": "#00aabb", "description": "example", "exclusive": false, "is_archived": false, "name": "example" }'
org
required
string

Name of the organization

id
required
integer format: int64

Id of the label to edit

Media typeapplication/json

EditLabelOption options for editing a label

object
color
string
Example
#00aabb
description
string
exclusive
boolean
Example
false
is_archived
boolean
Example
false
name
string

Label

Media typeapplication/json

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
}

APINotFound is a not found empty response

Media typeapplication/json

APIValidationError is error format response related to input validation

Media typeapplication/json
message
string
url
string