Shadow Ban User (In Room Only)
There is a user level shadow ban global and local room level shadow ban.
There is a user level shadow ban (global) and local room level shadow ban.
A Shadow Banned user can send messages into a chat room, however those messages are flagged as shadow banned. This enables the application to show those messags only to the shadow banned user, so that that person may not know they were shadow banned. This method shadow bans the user on the global level (or you can use this method to lift the ban). You can optionally specify an expiration time. If the expiration time is specified, then each time the shadow banned user tries to send a message the API will check if the shadow ban has expired and will lift the ban.
- userid: (required) The applicaiton provided userid of the user to ban
- applyeffect: (required) true or false. If true, user will be set to banned state. If false, will be set to non-banned state.
- expireseconds: (optional) Duration of shadowban value in seconds. If specified, the shadow ban will be lifted when this time is reached. If not specified, shadowban remains until explicitly lifted. Maximum seconds is a double byte value.
Parameters
Values in the path and query string.
appid path your-app-id roomid path room-id JSON body
Send as application/json.
userId The customer defined user ID from your application or identity system.
applyEffect expireSeconds {
"applyEffect": true,
"userId": "u-8842"
} Status codes
Every JSON response uses the API result envelope.
200 OK ApiResult 400 Bad Request ApiResult 403 Forbidden ApiResult 404 Not Found ApiResult 500 Internal Server Error ApiResult