Update an existing label. At least one optional parameter is required.
PUT
/v3/projects/{id}/labelsUpdate an existing label. At least one optional parameter is required.
请求参数
Path 参数
id
string
必需
The ID of a project
Body 参数application/x-www-form-urlencoded
name
string
必需
The name of the label to be updated
new_name
string
可选
The new name of the label
color
string
可选
The new color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB)
description
string
可选
The new description of label
priority
integer <int32>
可选
The priority of the label
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Update an existing label. At least one optional parameter is required.
数据结构
Unsubscribe from a resource
id
string
可选
name
string
可选
color
string
可选
description
string
可选
open_issues_count
string
可选
closed_issues_count
string
可选
open_merge_requests_count
string
可选
priority
string
可选
subscribed
string
可选
示例
{
"id": "string",
"name": "string",
"color": "string",
"description": "string",
"open_issues_count": "string",
"closed_issues_count": "string",
"open_merge_requests_count": "string",
"priority": "string",
"subscribed": "string"
}
最后修改时间: 1 个月前