Issue-自定义等级 添加¶
POST /api/v1/issue-level/add
概述¶
Body 请求参数¶
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
name | string | Y | 自定义等级名称 例子: name 允许为空: False 最大长度: 256 |
description | string | 自定义等级描述 例子: description 允许为空: False |
|
extend | json | 额外拓展信息 例子: {} 允许为空: True |
|
color | string | Y | 自定义等级颜色 例子: description 允许为空: False |
参数补充说明¶
请求例子¶
curl 'https://openapi.guance.com/api/v1/issue-level/add' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"name": "custom-1","color": "#E94444","description": "自定义等级描述2"}'\
--compressed
响应¶
{
"code": 200,
"content": {
"color": "#E94444",
"createAt": 1694593524,
"creator": "acnt_xxxx32",
"deleteAt": -1,
"description": "自定义等级描述2",
"extend": {},
"id": 3,
"name": "custom-1",
"status": 0,
"updateAt": 1694593524,
"updator": "acnt_xxxx32",
"uuid": "issl_xxxx32",
"workspaceUUID": "wksp_xxxx32"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-2B1E09C8-2401-4C52-ABF9-093CC9873742"
}