Overview
Mutes chatroom members. Muted members cannot send messages to the chatroom.
Request
Authentication: Add authentication headers to the request. See Authentication.
Method:
POST
Rate limit:
100 requests/second
Endpoint: https://API domain/apigateway/chatrooms/mutemembers/add
Content-Type:
application/json
Request Parameters
| Parameter | Data Type | Required | Description | |
|---|---|---|---|---|
| chat_id | string | Yes | Chatroom ID. Maximum length: 32 characters. | |
| member_ids | array | Yes | IDs of the chatroom members to mute. Each user ID can contain up to 32 characters. | |
| end_time | number | No | Mute expiration time in milliseconds. A value of 0 indicates a permanent mute. | |
| end_time_offset | number | No | Duration in milliseconds. If end_time is not specified, the server calculates it by adding end_time_offset to the current time. |
Request Example
POST /apigateway/chatrooms/mutemembers/add HTTP/1.1
appkey: appkey
signature: 2e639ae3600a4sdff61fb88b76f485b
nonce: nonce
timestamp: 1672568121910
Content-Type: application/json
{
"chat_id":"chatroom1",
"member_ids":["member1","member2"]
}
Response Example
{
"code":0,
"msg":"sucess"
}