你可以使用此接口批量移除全员禁言下白名单成员。
你可以调用BatchRemoveWhitelistParticipant接口,指定你所属的AppId、会话 ID、 操作人 UserId、要移除白名单成员 UserId,批量移除全员禁言下可发言白名单成员。
目前仅直播群支持此接口
关于调用接口的服务地址、通信协议、字符编码和签名机制,参看调用 OpenAPI。
QPS 不得超过 50。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | BatchRemoveWhitelistParticipant | 接口名称。当前 API 的名称为 BatchRemoveWhitelistParticipant。 |
| Version | String | 是 | 2020-12-01 | 接口版本。当前 API 的版本为 2020-12-01。 |
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| AppId | Integer | 是 | 000000 | 应用的唯一标志 |
| ConversationShortId | Long | 是 | 000001 | 会话 ID |
| Operator | Long | 是 | 000010 | 操作人 UserId |
| ParticipantUserIds | Array of Long | 是 | [10001,10002] | 要移除白名单用户 UserId |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| FailedUserIds | Array of Long | [10001] | 移除失败的 UserId |
POST https://rtc.volcengineapi.com?Action=BatchRemoveWhitelistParticipant&Version=2020-12-01
{
"AppId": 000000,
"ConversationShortId": 000001,
"Operator": 000010,
"ParticipantUserIds": [
10001,
10002
]
}
json{
"ResponseMetadata": {
"RequestId": "Your_RequestId",
"Action": "BatchRemoveWhitelistParticipant",
"Version": "2020-12-01",
"Service": "rtc",
"Region": "cn-beijing"
},
"Result": {
"FailedUserIds": [
10001
]
}
}
json您可访问公共错误码,获取更多错误码信息。