获取团队下产品属性列表
GET/project/product/fields
获取团队下产品属性列表
History
Version | Changes |
---|---|
v3.14.117, v3.15.26 | Added in: v3.14.117, v3.15.26 |
Request
Query Parameters
teamID stringrequired
团队ID
Responses
- 200
- 401
- 403
- 404
- 500
请求成功
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object
fields
object[]
aliases array
别名
builtIn string
是否是系统属性
createTime integer
创建时间
typeLabel string
属性类型
name string
属性名称
id string
属性UUID
defaultValue object
属性默认值
options
object
属性选项
id string
选项id
value string
选项值
required boolean
是否必填
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
errorData object
本次请求错误元数据
[
{
"result": "SUCCESS",
"data": {
"fields": [
{
"id": "string",
"buildIn": true,
"createTime": 0,
"defaultValue": {},
"aliases": [
"string"
],
"typeLabel": "string",
"options": [
{
"id": "string",
"value": {}
}
],
"required": true,
"name": "string"
}
]
}
}
]
如果身份验证凭据不正确或丢失,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
如果scope检验不通过,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
如果未找到资源对象,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
内部服务器错误
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}
Loading...