请求:
权限
请求方法
Header参数
Path参数
Query参数
Body参数
响应:
返回参数
返回示例
错误码{HTTP method} https://api.dingtalk.com/{version}/{resource}?{query-parameters}{HTTP method},API请求中使用的HTTP方法。{version},正在使用的API版本。{resource},正在使用的资源,例如user, event等。这部分参数需要放置在 URL 中,在文档中一般以{ }表示。{query-parameters},这部分参数需要在 URL 后使用?进行连接,多个查询参数以&分割。| 方法 | 说明 |
|---|---|
| GET | 从资源中读取数据。 |
| POST | 创建新的资源或执行某个操作。 |
| PUT | 替换为新资源。 |
| DELETE | 删除资源。 |



POST /v1.0/todo/users/cHtUYN1bxxxx/tasks?operatorId=cHtUYN1bxxxx HTTP/1.1
Host:api.dingtalk.com
x-acs-dingtalk-access-token:String
Content-Type:application/json
{
"sourceId" : "dingtalk",
"subject" : "接入钉钉待办",
"creatorId" : "cHtUYN1bxxxx",
"description" : "待办描述",
"dueTime" : 1638356272000L,
"executorIds" : [ "xW5ItJxxxx" ],
"detailUrl" : {
"appUrl" : "https://www.dingtalk.com",
"pcUrl" : "https://www.dingtalk.com"
},
"isOnlyShowExecutor" : false,
"priority" : 40,
"notifyConfigs" : {
"dingNotify" : "1"
}
} "body":
{
"bizTag":"todo_open_dingxxxxx",
"createdTime":1638263305464,
"creatorId":"cHtUYN1bxxxx",
"description":"待办描述",
"detailUrl":
{
"appUrl":"https://www.dingtalk.com",
"pcUrl":"https://www.dingtalk.com"
},
"done":false,
"dueTime":1638356272000,
"executorIds":["xW5ItJxxxx"],
"finishTime":0,
"id":"task86e68644789bd6xxxxxxx",
"isOnlyShowExecutor":false,
"modifiedTime":1638263305464,
"modifierId":"cHtUYN1bxxxx",
"participantIds":["cHtUYN1bxxxx","xW5ItJxxxx"],
"priority":40,
"requestId":"4244C7DD-870A-7850-8E38-xxxxxx",
"source":"todo_open_dingzuws6w3mi5svgwky",
"sourceId":"dingtalk",
"startTime":0,
"subject":"接入钉钉待办"
}
【钉钉】API开发者 微信交流群
用微信扫右侧二维码,加入【钉钉】API开发者 交流群,互助沟通

扫码加入交流群