修改运单优先级
请求
- 功能:当前运单没有分派机器人时,可以下发修改运单的优先级
- 方法:
POST
- 接口说明:
/setPriority
json
POST "http://host:8088/setPriority"
1
请求数据
Name | Type | Description | Required |
---|---|---|---|
id | string | 修改 pirority 的运单 ID | 是 |
priority | int | 修改后的 priority | 是 |
请求示例
json
{
"id": "task1", // 运单 task1
"priority": 1
}
1
2
3
4
2
3
4
响应
响应数据
Name | Type | Description |
---|---|---|
code | int | API 错误码,详情见 API 错误码 |
msg | string | API 错误码信息 |
create_on | string | API 上传时间戳 |
响应示例
Responses Code 200
成功响应
json
{
"code": 0,
"create_on": "2022-02-10T18:21:25.073Z",
"msg": "ok"
}
1
2
3
4
5
2
3
4
5
Responses Code 400
请求 body 不为 json
json
{
"code": 50000,
"create_on": "2022-02-10T18:21:25.073Z",
"msg": "parse json error"
}
1
2
3
4
5
2
3
4
5
最近更新 2022/11/28
有用
没用