Disable RTMP stream key
Use this request to disable the RTMP stream key for a specific room.
POSThttps://api.100ms.live/v2/stream-keys/room/<room_id>/disable
curl --location --request POST 'https://api.100ms.live/v2/stream-keys/room/<room_id>/disable' \ --header 'Authorization: Bearer <management_token>'
RESPONSE
Status: 201 OK
{ "message": "key disabled successfully" }
Arguments
Field | Type | Description |
---|---|---|
room_id | string | mandatory |
Errors
Description | Code |
---|---|
Key not found | 404 |
Room not found | 404 |
Room is disabled (not active) | 403 |
Authentication Error | 401 |
Note on resetting stream keys
In order to reset stream key for a particular room, disable the existing stream key for the room using the above given API, and then create a new stream key using the Create Stream Key API. This is especially important if a stream key is leaked publicly.
Have a suggestion? Recommend changes ->