Logo
API_DOC API Documentation

End Active Room

POST {{HOST}}/v2/active-rooms/:room_id/end-room

Trigger this request to end an active room.

Arguments

Name Type Description Required
id
— path param
string Unique identifier of the room you wish to disable.

Example: 627cda81ab4f3b56a077dc33
Yes
reason
— body param
string Description to indicate the reason for ending the active room. No
lock
— body param
boolean Status of the room to be set.
Allowed values: true, false.
Default: false (ends the current active session only)
No

Warning: If you set the lock argument to true, it will end the active room and users will not be able to join the room later as well. You can use enable a room API or dashboard to enable the room again.

Why would you use this API?

  • To disconnect all connected peers at a pre-defined timestamp if you wish to add a hard stop for any sessions.
  • Use this to allow peers to join the room only once daily for a respective time slot.
    • Trigger this API at the end of the session with the lock argument as true,
    • The next day, one minute before the schedule - use the enable a room API to enable the room to allow the users to join the session.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status





Curl
curl -X POST 'https://api.100ms.live/v2/active-rooms/:room_id/end-room' -d '{"reason":"The session has ended","lock":false}'

ENDPOINTS