设置免打扰接口
POST
/api/v2/setMute
请求参数
Query 参数
token
string
必需
Body 参数application/json
imBotId
string
托管账号成员id
imRoomId
string
本系统内群聊id
imContactId
string
本系统内联系人id
mute
boolean
是否生效
示例
{
"imBotId": "string",
"imRoomId": "string",
"imContactId": "string",
"mute": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v2/setMute?token=' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
errcode
integer
必需
errmsg
string
必需
示例
{
"errcode": 0,
"errmsg": "string"
}
修改于 2024-09-25 09:38:44