拉入群聊黑名单
POST
https://aa-hub.ddregion.com/api/v2/groupChat/black/add
通过remove参数控制是否在拉黑的同时将对象批量移除企业内所有托管账号是群主的群
true为移出
false为不移出
请求参数
Query 参数
token
string
必需
Body 参数application/json
imContactId
string
要拉入黑名单的客户id
remove
boolean
是否要将客户批量移除所在所有群聊
imBotId
string
本系统托管账号对应成员ID
示例
{
"imContactId": "string",
"remove": true,
"imBotId": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://aa-hub.ddregion.com/api/v2/groupChat/black/add?token' \
--header 'Content-Type: application/json' \
--data-raw '{
"imContactId": "string",
"remove": true,
"imBotId": "string"
}'
返回响应
🟢200成功
application/json
Body
errcode
number
返回码
errmsg
string
可选
示例
{
"errcode": 0,
"errmsg": "string"
}