你可以使用此接口批量移除全员禁言下白名单成员。

使用说明
接口行为

你可以调用BatchRemoveWhitelistParticipant接口,指定你所属的AppId、会话 ID、 操作人 UserId、要移除白名单成员 UserId,批量移除全员禁言下可发言白名单成员。
目前仅直播群支持此接口

调用接口

关于调用接口的服务地址、通信协议、字符编码和签名机制,参看调用 OpenAPI。

注意事项

QPS 不得超过 50。

请求说明
请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。

Query
参数类型是否必选示例值描述
ActionString是BatchRemoveWhitelistParticipant接口名称。当前 API 的名称为 BatchRemoveWhitelistParticipant。
VersionString是2020-12-01接口版本。当前 API 的版本为 2020-12-01。
Body
参数类型是否必选示例值描述
AppIdInteger是000000应用的唯一标志
ConversationShortIdLong是000001会话 ID
OperatorLong是000010操作人 UserId
ParticipantUserIdsArray of Long是[10001,10002]要移除白名单用户 UserId
返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构。

参数类型示例值描述
FailedUserIdsArray 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
错误码

您可访问公共错误码,获取更多错误码信息。