Start a stream
POST/v1/streams/{streamSettingsId}/start
const url = 'https://api.ligr.live/rest/v1/streams/1/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/start \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "destinationIds": [ 1 ] }'Starts the stream. The stream infrastructure comes up and the state moves through CREATING
to ONLIVE. Without destinationIds the stream publishes nowhere until an operator starts
the destinations from the dashboard, which is how you preview the picture. With
destinationIds those destinations publish as soon as the stream is up.
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
Destinations to publish to as soon as the stream is up, by stream destination id. Leave it out to start the stream with no destination publishing: the picture runs, and an operator starts the destinations from the dashboard when it is right. An empty array means the same.
Examplegenerated
{ "destinationIds": [ 1 ]}Responses
Section titled “Responses”Ok
object
Entity identifier
Entity identifier
Examplegenerated
{ "streamSettingsId": 1, "state": "example", "matchId": 1, "transitioning": true}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"}