Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
34 lines (25 loc) · 1.3 KB

File metadata and controls

34 lines (25 loc) · 1.3 KB

Mute User in Room

Mute a particular user in a room.

HTTP MethodURLRequires Auth
POST/api/v1/rooms.muteUseryes

Body Parameters

KeyExample ValueDescription
roomId*JZ8Y2dLfYhsg323RfThe room ID.
userId*CkCPNfjfhiwWLqCThe user that you want to mute. Alternatively, you can also use the username parameter.

Example Call

curl -L -X POST 'http://localhost:3000/api/v1/rooms.muteUser' \
-H 'X-User-Id: d26x6zSkaPSe5gCyy' \
-H 'X-Auth-Token: Zu-Z6eKzIIz7MCCRGeHi29bYkXZCJ4SxFC0JAasqm92' \
-H 'Content-Type: application/json' \
--data-raw '{
    "userId": "CkCPNfjfhiwWLqC",
    "roomId": "iu7jtPAhvEeAS5tNq" 
}'

Example Response

{
    "success": true
}
Version Description
6.8.0 Added