获取指定工单自定义字段
GET
https://open.feishu.cn/open-apis/helpdesk/v1/ticket_customized_fields/{ticket_customized_field_id}
自建应用
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 154000 | Bad request, please check your request body | 请求不合法,请检查参数 |
401 | 154001 | Unauthorized, please check you have the correct access | 检查Authorization 和 X-Lark-Helpdesk-Authorization 是否正确,应用和服务台属于同一租户 |
403 | 154003 | Please check you have the correct access | 检查是否申请正确权限 |
500 | 155000 | Internal error | 内部错误,请联系我们 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.feishu.cn/open-apis/helpdesk/v1/ticket_customized_fields/6948728206392295444' \
--header 'Authorization;'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"ticket_customized_field_id": "6834320707288072194",
"helpdesk_id": "1542164574896126",
"key_name": "test dropdown",
"display_name": "test dropdown",
"position": "3",
"field_type": "dropdown",
"description": "下拉示例",
"visible": true,
"editable": true,
"required": false,
"created_at": "1591239289000",
"updated_at": "1591239289000",
"created_by": {
"id": "ou_37019b7c830210acd88fdce886e25c71",
"avatar_url": "https://xxxx",
"name": "abc",
"email": "xxxx@abc.com"
},
"updated_by": {
"id": "ou_37019b7c830210acd88fdce886e25c71",
"avatar_url": "https://xxxx",
"name": "abc",
"email": "xxxx@abc.com"
},
"dropdown_options": {
"children": [
{
"tag": "a2ac322d-8d8c-432e-9631-17c4acaddbf7",
"display_name": "a"
},
{
"tag": "67068d18-20c9-412e-afc0-714d0e8fac29",
"display_name": "b"
},
{
"tag": "d135b9f3-f260-49e6-bb7b-32e334a99caf",
"display_name": "c"
}
]
},
"dropdown_allow_multiple": true
}
}
请求参数
Path 参数
ticket_customized_field_id
必需
示例值:
6948728206392295444
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8