Update Room Code status

Updates the current state for a given Room Code.

POSThttps://api.100ms.live/v2/room-codes/code
curl --location --request POST 'https://api.100ms.live/v2/room-codes/code' \ --header 'Authorization: Bearer <management_token>' \ --header 'Content-Type: application/json' \ --data '{ "code": <code>, "enabled": false }'

Arguments

FieldTypeDescriptionRequired
codestringRoom Code to be updatedRequired
enabledbooleanCan be updated to true or falseRequired
RESPONSE
Status: 200 OK
{ "code": "eiu-qwq-sdf", "room_id": "329d23d4f772854d9bf633df", "role": "host", "enabled": false, "created_at": "2023-03-03T11:41:08.082Z", "updated_at": "2023-03-03T12:43:05.082Z" }

Errors

DescriptionCode
Code not found404
Code can not be enabled (role/room does not exist)403
Authentication Error401
Invalid body parameter
  • if body contains other field than enabled
  • if enabled is not boolean
400

Have a suggestion? Recommend changes ->

Run in postman

Was this helpful?

1234