Stop stream destinations
POST/v1/streams/{streamSettingsId}/destinations/stop
const url = 'https://api.ligr.live/rest/v1/streams/1/destinations/stop';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"destinationIds":[1]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.ligr.live/rest/v1/streams/1/destinations/stop \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "destinationIds": [ 1 ] }'Stops publishing to the given destinations. The stream keeps running, so you can start them again. A stream that is not running answers 400.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity identifier
The stream settings identifier
Request Bodyrequired
Section titled “Request Bodyrequired”object
Stream destination ids. A destination must be linked to the stream.
Examplegenerated
{ "destinationIds": [ 1 ]}Responses
Section titled “Responses”Ok
object
Entity identifier
Entity identifier
What the stream reports for one destination right after a start or a stop.
object
Entity identifier
connected, connecting or retrying.
Outgoing bitrate in kb/s. Present when the status is connected.
Time of the next connection attempt, in ISO 8601. Present when the status is retrying.
Number of connected clients. Pull destinations only.
Examplegenerated
{ "streamSettingsId": 1, "matchId": 1, "destinations": [ { "id": 1, "status": "example", "bitrateKb": 1, "nextRetryDate": "example", "activeClients": 1 } ]}Request is invalid
object
object
Examplegenerated
{ "message": "example", "details": { "additionalProperty": "example" }}Missing or invalid api key
object
Examplegenerated
{ "message": "example"}Api key provides insufficient access for the request
object
Examplegenerated
{ "message": "example"}Stream not found
object
Examplegenerated
{ "message": "example"}Api key has made too many requests
object
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
object
Examplegenerated
{ "message": "example"}