dingtalk.corp.chatbot.updatebychatbotid (ISV变更企业已安装机器人的名字或头像)

ISV变更企业已安装机器人的名字或头像

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
icon String 可选 @lALOuP-LU80CgM0CgA 机器人头像
name String 可选 项目通知 机器人名字
chatbot_id String 可选 gitLab 机器人id(钉钉分配)
preview_media_id String 可选 @lALOuP-LU80CgM0CgA 机器人预览图
description String 可选 优秀的代码托管服务,将接收到项目变更的实时通知 机器人详细描述
update_type Number 必须 0 更新名字或头像时是否更新群里已添加机器人的名字或头像。 * 0-不更新群里机器人名字或头像 * 1-更新群里机器人名字或头像
breif String 可选 基于ROR的开源代码托管软件 机器人简单描述

响应参数

名称 类型 示例值 描述
result DingOpenResult result
  • └ result
  • Json
  • null
  • result
  • └ ding_open_errcode
  • Number
  • -1
  • dingOpenErrcode
  • └ error_msg
  • String
  • 系统错误
  • errorMsg
  • └ success
  • Boolean
  • true
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://eco.taobao.com/router/rest");
CorpChatbotUpdatebychatbotidRequest req = new CorpChatbotUpdatebychatbotidRequest();
req.setIcon("@lALOuP-LU80CgM0CgA");
req.setName("项目通知");
req.setChatbotId("gitLab");
req.setPreviewMediaId("@lALOuP-LU80CgM0CgA");
req.setDescription("优秀的代码托管服务,将接收到项目变更的实时通知");
req.setUpdateType(0L);
req.setBreif("基于ROR的开源代码托管软件");
CorpChatbotUpdatebychatbotidResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<dingtalk_corp_chatbot_updatebychatbotid_response>
    <result>
        <result>null</result>
        <ding_open_errcode>-1</ding_open_errcode>
        <error_msg>系统错误</error_msg>
        <success>true</success>
    </result>
</dingtalk_corp_chatbot_updatebychatbotid_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部