主题
待办转已办
| 接口名称 | url | 请求方式 | 请求数据类型 |
|---|---|---|---|
| 待办转已办 | /api/todo-center/newtodo/open/action.json | post | application/json |
请求参数
| 参数名称 | 参数说明 | 是否必填 | 数据类型 |
|---|---|---|---|
| sourcetype | 应用ID,即appId(待办中心的appid) | 是 | String |
| sourceitemid | 即发送待办的sourceId,生成的待办所关联的第三方服务业务记录的ID,是待办的批次号 | 是 | String |
| batchId | 批次ID, 标识是同一条审批流程的编号,流程审批中,所有的待办batchId必须一致,否则将会出现问题 | 是 | |
| deal | 更新目标处理状态,0表示未办,1表示已办,默认为0 | 是 | Integer |
| read | 更新目标阅读状态,0表示未读,1表示已读,默认为0 | 是 | Integer |
| delete | 更新目标删除状态,0表示未删除,1表示删除 | 是 | Integer |
| eid | 待办的发送人所在工作圈eid | 是 | String |
| jobNos | 可填多人,多个工号中间用,号隔开,不填的话则更新sourceitemid下所有人员的待办状态 | 否 | String |
json
curl --location '{{url}}/api/todo-center/newtodo/open/action.json' \
--header 'Content-Type: application/json' \
--data-raw '
{
"sourcetype": "1113811161813352448",
"sourceitemid": "12345412",
"actiontype": {
"deal": 1,
"read": 0
},
// "eid": "101",
"jobNos": ["0083xx"]
}
'