主题
修改待办数据
| 接口名称 | url | 请求方式 | 请求数据类型 |
|---|---|---|---|
| 修改待办数据 | /api/todo-center/analyze/todoPush | post | application/json |
请求参数
| 参数名称 | 二级参数 | 参数说明 | 是否必填 | 数据类型 | 备注说明 |
|---|---|---|---|---|---|
| type | 待办数据传参 todoUpdate | 是 | string | 接口类型,todoUpdate修改待办 | |
| appId | appId | 是 | string | 注册应用返回的client_id | |
| sourceId | 业务记录ID | 是 | string | 应用待办的唯一编号 | |
| batchId | 批次ID | 否 | string | 标识是同一条审批流程的编号 | |
| content | json字符串 业务处理字段 | 是 | string | 二级参数对象json编码 | |
| appId | appId | 是 | string | 注册应用返回的client_id | |
| sourceId | 业务记录ID | 是 | string | 应用待办的唯一编号 | |
| batchId | 批次ID | 否 | string | 标识是同一条审批流程的编号,同一流程实例不同节点批次ID相同 | |
| receptionId | 处理人 | 否 | string | 支持批量逗号分隔处理人 如果不传就修改该唯一编号下的所有用户 | |
| asterisk | 星标 | 否 | int | 用户可在待办中心页面设置星标,不用传,0不限,1已设星标 默认为0 | |
| moduleSource | 模块来源 | 否 | string | ||
| urgentStatus | 加急状态 | 否 | Integer | 0普通 1催办 | |
| processStatus | 待办中心是否可处理 | 否 | Integer | 0-不可以处理,1-可以处理 (如果设置为1 那么待办中心可以处理待办并修改待办状态,为0则不允许待办中心处理待办。设置为1需要提供回调接口 对接待办中心处理后回调同步待办状态) | |
| pendingStatus | 暂挂状态 | 否 | Integer | 0普通 1 暂挂 |
json
curl --location '{{url}}/api/todo-center/analyze/todoPush' \
--header 'Content-Type: application/json' \
--data-raw '
{
"type":"todoSave",// 类型
"appId":"app12345",
"sourceId":"source67649",
"batchId":"batch54321",
"content":"{\"appId\":\"app12345\",\"type\":0,\"sourceId\":\"source67649\",\"batchId\":\"batch54321\",\"asterisk\":0,\"moduleSource\":\"报销zs1\"}"
}
'返回值
json
成功返回
{
"code": 200,
"message": null,
"data": true
}
错误返回
{
"code": 500,
"message": "系统异常",
"data": null
}