创建仓库任务标签
POST/api/v5/repos/:owner/:repo/labels
Request
Path Parameters
owner stringrequired
仓库所属空间地址(企业、组织或个人的地址path)
repo stringrequired
仓库路径(path)
Query Parameters
access_token stringrequired
用户授权码
- application/x-www-form-urlencoded
Body
namestring
标签名称
Example:
colorstring
标签新颜色.如#fff
Example:
Responses
- 200
成功响应
Response Headers
- application/json
- Schema
- Example (auto)
- Example
Schema
idinteger
namestring
colorstring
{
"id": 0,
"name": "string",
"color": "string"
}
{
"id": 12738109,
"name": "测试1",
"color": "#fff"
}