dingtalk.oapi.message.corpconversation.recall (撤回工作通知消息)

根据发送工作通知消息的taskId进行消息撤回操作

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
agent_id Number 必须 1000 发送工作通知的微应用agentId
msg_task_id Number 必须 2000 发送工作通知返回的taskId

响应参数

名称 类型 示例值 描述
errmsg String ok 错误描述
errcode Number 0 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/message/corpconversation/recall");
OapiMessageCorpconversationRecallRequest req = new OapiMessageCorpconversationRecallRequest();
req.setAgentId(1000L);
req.setMsgTaskId(2000L);
OapiMessageCorpconversationRecallResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "errmsg":"ok",
    "errcode":0
}

异常示例

  • JSON示例
{
	"errcode":88,
	"errmsg":"ding talk error"
}

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部