应用类型 | 是否支持 | 权限 | API Explorer调试 |
---|---|---|---|
企业内部应用 | 支持 | 待办应用中待办写权限 | API Explorer |
第三方企业应用 | 支持 | 待办应用中待办写权限 | API Explorer |
第三方个人应用 | 暂不支持 | 待办应用中待办写权限 | 暂不支持 |
HttpCode | 错误码 | 错误信息 | 说明 |
---|---|---|---|
400 | todo.taskCreate.lockError | todo.taskCreate.lockError | 创建待办根据sourceId加锁失败 |
400 | todo.taskCreate.paramError | task exist | 待办任务已存在 |
400 | todo.taskCreate.paramError | subject is oversize | 待办标题长度超出限制 |
400 | todo.taskCreate.paramError | description is oversize | 待办描述长度超出限制 |
400 | todo.taskCreate.paramError | executors is oversize | 待办执行人超出限制 |
400 | todo.taskCreate.paramError | participants is oversize | 待办参与人超出限制 |
400 | todo.taskCreate.paramError | dueTime is invalid | 待办截止时间非法 |
400 | todo.taskCreate.paramError | todo.taskCreate.paramError | 创建待办参数异常 |
400 | todo.taskCreate.flowControlError | flowControl because of executorId or orgId | 创建待办针对执行者或者企业进行了限流处理 |
500 | todo.taskCreate.systemError | todo.taskCreate.systemError | 创建待办系统内部异常 |
curl --location --request POST 'https://api.dingtalk.com/v1.0/todo/users//tasks?operatorId=String' \
--header 'x-acs-dingtalk-access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"sourceId" : "String",
"subject" : "String",
"creatorId" : "String",
"description" : "String",
"dueTime" : Long,
"executorIds" : [ "String" ],
"participantIds" : [ "String" ],
"detailUrl" : {
"appUrl" : "String",
"pcUrl" : "String"
},
"isOnlyShowExecutor" : Boolean,
"priority" : Integer,
"notifyConfigs" : {
"dingNotify" : "String"
}
}'
{
"id": "string",
"subject": "string",
"description": "string",
"startTime": 0,
"dueTime": 0,
"finishTime": 0,
"done": true,
"executorIds": [
"string"
],
"participantIds": [
"string"
],
"detailUrl": {
"pcUrl": "string",
"appUrl": "string"
},
"source": "string",
"sourceId": "string",
"createdTime": 0,
"modifiedTime": 0,
"creatorId": "string",
"modifierId": "string",
"bizTag": "string",
"requestId": "string",
"isOnlyShowExecutor": true,
"priority": 0,
"notifyConfigs": {
"dingNotify": "string"
}
}
【钉钉】API开发者 微信交流群
用微信扫右侧二维码,加入【钉钉】API开发者 交流群,互助沟通