Create a new label
POST
/v3/projects/{id}/labelsCreate a new label
请求参数
Path 参数
id
string
必需
The ID of a project
Body 参数application/x-www-form-urlencoded
name
string
必需
The name of the label to be created
color
string
必需
The color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB)
description
string
可选
The description of label to be created
priority
integer <int32>
可选
The priority of the label
示例代码
返回响应
成功(201)
HTTP 状态码: 201
内容格式: JSONapplication/json
Create a new label
数据结构
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 个月前