- Overview of OpenAPI
- SlackOpenAPI
- ShopifyOpenAPI
- GithubAPI
- DiscordOpenAPI
- 历史文档(不推荐)
- HTTP回调
- 审批待办
- 通讯录管理
- 钉钉红包
- 身份验证(免登)
- 花名册
- 行业连接
- 日程
- 开发钉钉应用
- 服务端API
- 新版服务端API(DingTalk OpenAPI)
- 生态伙伴API
清理历史任务数据
POST
http://127.0.0.1/topapi/workspace/task/clean
历史文档(不推荐)/审批待办/项目任务
最后修改时间:2022-08-30 09:19:22
责任人:未设置
说明#
服务地址:https://oapi.dingtalk.com
权限#
应用类型 | 是否支持调用 | 权限申请方式 | API Explorer调试 |
---|---|---|---|
企业内部应用 | 否 | — | — |
第三方企业应用 | 是 | 无需申请 | 调试 |
第三方个人应用 | 否 | — | — |
请求参数
Query 参数
accessKey
string
必需
示例值:
suitep1f5lzyglm7fryun
timestamp
string
必需
示例值:
1598359962000
suiteTicket
string
必需
示例值:
test
signature
string
必需
示例值:
xxxx
Body 参数application/json
corp_id
string
必需
agentid
number
可选
operator_userid
string
可选
示例
{
"corp_id": "dinge8a56572fxxxx",
"agentid": 868810166,
"operator_userid": "8456259"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1/topapi/workspace/task/clean?accessKey=suitep1f5lzyglm7fryun×tamp=1598359962000&suiteTicket=test&signature=xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"corp_id": "dinge8a56572fxxxx",
"agentid": 868810166,
"operator_userid": "8456259"
}'
返回响应
🟢200成功
application/json
Body
errcode
number
返回码。
errmsg
string
返回码描述。
示例
{
"errcode": 0,
"errmsg": "string"
}
