工单自定义字段
GET /apiv2/ticket_fields.json
调用权限
agents
也可以使用如下API:
获取状态为启用的自定义字段列表
GET /apiv2/ticket_fields/active.json
curl 示例
curl https://{subdomain}.kf5.com/apiv2/ticket_fields.json -u {email_address}:{password}
返回示例
Status: 200 OK{ "ticket_fields":[ { "id": 4, "url": "https://support.kf5.com/apiv2/ticket_fields/4.json", "name": "field_4", "type": "dropdownlist", "agent_title": "问题类型", "agent_required": true, "enduser_visible": true, "enduser_title": "请选择问题类型", "enduser_editable": true, "enduser_description": "", "enduser_required": true, "active": true, "custom_field_options": [ { "key": "反馈建议", "value": "反馈建议" }, { "key": "产品问题", "value": "产品问题" } ] } ]}