dingtalk.oapi.calendar.v2.event.cancel (日程2.0取消日程)

DING日程2.0取消日程

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
calendar_id String 必须 primary
  • 最大长度:64
  • 日历id,目前仅支持传“primary”,表示“我的日程”下的日程
    event_id String 必须 xxxaaa
  • 最大长度:64
  • 加密后的日程Id
    agentid Number 可选 1212 开放平台应用对应的AgentId

    响应参数

    名称 类型 示例值 描述
    errcode Number 0 错误编码
    errmsg String 接收人不能为空 错误信息
    success Boolean true 结果是否正确

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/calendar/v2/event/cancel");
    OapiCalendarV2EventCancelRequest req = new OapiCalendarV2EventCancelRequest();
    req.setCalendarId("primary");
    req.setEventId("xxxaaa");
    req.setAgentid(1212L);
    OapiCalendarV2EventCancelResponse rsp = client.execute(req, access_token);
    System.out.println(rsp.getBody());

    响应示例

    • JSON示例
    {
        "errcode":0,
        "errmsg":"接收人不能为空",
        "success":true
    }

    异常示例

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

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部