Skip to content

待办消息发送 ​

接口名称url请求方式请求数据类型
待办消息发送/api/todo-center/newtodo/open/generatetodo.jsonpostapplication/json

请求参数 ​

参数名称二级参数参数说明是否必填数据类型
url点击待办跳转的URL是String
sourceId生成的待办所关联的第三方服务业务记录的id,对应待办处理中的sourceitemid是String
batchId批次ID, 标识是同一条审批流程的编号,流程审批中,所有的待办batchId必须一致,否则将会出现问题是string
content待办内容是String
title来自字段的内容显示是String
itemtitle待办项标题内容显示,选填,如不填,则默认为title值是String
headImg待办在客户端显示的图URL是String
appId生成的待办所关联的第三方服务类型id (待办中心的appid)是String
senderId待办的发送人的openId,可不填否String
eid待办的发送人所在工作圈eid是String
level待办紧急程度 0表示程度最低,最大为4,默认为0否Integer
paramsjobNo结点的上一级结点(父结点)是JsonArray
jobNo待办接收人jobNo, 可填多人是String
todoType待办类型: 0:待阅(通知);1:待审批(待办);是Integer
processStatus0-不可以处理(默认),1-可以处理 (如果设置为1 那么待办中心可以处理待办并修改待办状态,为0则不允许待办中心处理待办。设置为1需要提供回调接口 对接待办中心处理后回调同步待办状态)否Integer
urgentStatus加急状态 0普通(默认) 1催办否Integer
pendingStatus暂挂状态 0普通 (默认)1 暂挂否Integer
sysTag系统标识 标识子系统否string
json

curl --location '{{url}}/api/todo-center/newtodo/open/generatetodo.json' \
--header 'Content-Type: application/json' \
--data-raw '
{
"content": "单据需要您审批",
"title": "待办测试",
"itemtitle": "请假审批",
"headImg": "http://ejia.tbea.com/space/c/photo/load?id=5a2f7ad750f8dd7810e79981",
"appId": "1113811161813352448",
// "eid": "101",
"senderId":"1",
"params": [
{
"jobNo": "0083xx"
}
],
"url": "http://10.131.2.91:8866/#/chuli?appId=1113811161813352448&sourceId=source673ww12347&batchId=batch5414412345",
"sourceId": "12345412",
"todoType": 1
}
'