| 错误码 | 说明 |
|---|---|
| 22302 | handler_id非法,对应员工不存在 |
| 22303 | cc_list内的id:“LiMei”非法,对应员工不存在 |
| 22304 | staff_id非法,对应员工不存在 |
| 22309 | relation_id非法,对象不存在 |
| 22310 | component_id非法,对应组件不存在或与对应工单模板不匹配 |
| 22311 | component_type为select,checked,radio或selectMultiple时,必须填写values |
| 22312 | component_type为input或textarea时,必须填写value |
| 22313 | sort排序值已存在需重新填写 |
| 22315 | component_id: 120 必填 |
| 22316 | values的值非法,不在选项中 |
| 22317 | component中value和values必填其一 |
{
"template_id": 0,
"title": "string",
"content": {
"text": "string",
"pic": [
"string"
]
},
"relation_type": 0,
"relation_id": "string",
"handler_id": "string",
"msg_list": [
"string"
],
"cc_list": [
"string"
],
"staff_id": "string",
"component_records": [
{
"sort": 0,
"title": "string",
"value": "string",
"values": [
"string"
],
"component_id": "string"
}
]
}curl --location -g --request POST 'https://open.weibanzhushou.com/open-api/workorder/create?access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"template_id": 0,
"title": "string",
"content": {
"text": "string",
"pic": [
"string"
]
},
"relation_type": 0,
"relation_id": "string",
"handler_id": "string",
"msg_list": [
"string"
],
"cc_list": [
"string"
],
"staff_id": "string",
"component_records": [
{
"sort": 0,
"title": "string",
"value": "string",
"values": [
"string"
],
"component_id": "string"
}
]
}'{
"errcode": 0,
"errmsg": "ok",
"order_no": "1145141919"
}