Start stream destinations
POST/v1/streams/{streamSettingsId}/destinations/start
const url = 'https://api.ligr.live/rest/v1/streams/1/destinations/start';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/start \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "destinationIds": [ 1 ] }'Starts publishing to the given destinations of a running stream. Use it after a start
without destinationIds, once the picture is right. The answer is what the stream reports
for each destination at that moment. 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"}