This endpoint is responsible for blocking a specific user from a live chat. Once blocked, the user will no longer be able to send messages.
Once blocked, the user is no longer able to send messages and their message input will display the notification "Chat Blocked".
Blocked users will still appear in the viewers list retrieved by the endpoint
https://pandavideo.readme.io/reference/chat-viewers-list but with the field is_valid: false, indicating that they are no longer considered valid participants.
This mechanism is useful for moderating live streams, allowing full control over who can interact in the chat.
To obtain the required user_id, simply call the Chat Viewers List endpoint, which returns all currently connected users along with their user data.
| Parameter | Type | Description |
|---|---|---|
| chat_id | String(UUID) | ID of the chat you want to retrieve viewer data from. |
| user_id | String | ID of the user you want to block. You can obtain this value from the Chat Viewers List |
