命令字type:robot.conv.modify.admins
请求示例:#
{
"type": "robot.conv.modify.admins",
"messageId": "202011090199343400111111",
"robotKey": "c5248a4b25724f71b9863f63ced65b04",
"conversationId": "R:10810031632726273",
"opcode": 1,
"admins": [
"1688853470818708",
"1688853471216854",
"1688849994687538"
]
}
请求参数说明:#
| 名称 | 类型 | 必须 | 描述 |
|---|
| type | String | 是 | robot.conv.modify.admins |
| messageld | String | 是 | 请求消息id,32个字符的唯一,应答时原样回传 |
| robotKey | String | 是 | 机器人robotKey |
| conversationId | String | 是 | 客户群conversationId,示例 "R:10813483155333331" |
| opcode | Integer | 否 | opcode:1 表示添加为管理员,2 表示从管理员中移除 |
| admins | Array | 是 | 群内同企业成员userId,示例:["1688853470818708", "1688853471216854", "1688849994687538" ] |
回调通知:#
回调通知接口 /XXXX/service/result
添加管理员:#
{
"robotKey":"0cb507fa35f543c59f9f0ae376217316",
"bizType":5,
"robotType":2,
"os":"win",
"isSendFromMac":1,
"code":"0",
"msg":"OK",
"sendTime":"2023-04-07 17:09:36",
"sendTimeTs":1680858576,
"dts":1680858576882,
"type":"robot.conv.modify.admins",
"messageId":"202304071709221993434",
"conversationId":"R:10760444294928670",
"opcode":1,
"admins":[
"1688853470818708"
],
"routing":"SEND",
"siteCode":"wenode_win_test_0001",
"nodeServerCode":"node_server_0001"
}
删除管理员:#
{
"robotKey":"0cb507fa35f543c59f9f0ae376217316",
"bizType":5,
"robotType":2,
"os":"win",
"isSendFromMac":1,
"code":"0",
"msg":"OK",
"sendTime":"2023-04-07 17:08:44",
"sendTimeTs":1680858524,
"dts":1680858524844,
"type":"robot.conv.modify.admins",
"messageId":"202304071708221993434",
"conversationId":"R:10760444294928670",
"opcode":2,
"admins":[
"7881303170011009"
],
"routing":"SEND",
"siteCode":"wenode_win_test_0001",
"nodeServerCode":"node_server_0001"
}
参数说明:#