Send a stream command (deprecated)
POST/v1/streams/{streamSettingsId}/manage
const url = 'https://api.ligr.live/rest/v1/streams/1/manage';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"command":"GoLive","startDestinationsImmediately":[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/manage \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "command": "GoLive", "startDestinationsImmediately": [ 1 ] }'Deprecated. Use POST /v1/streams/{streamSettingsId}/start and
POST /v1/streams/{streamSettingsId}/stop. This route keeps working until the Sunset date
in its response headers, and accepts GoLive and StopStream only.
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
The lifecycle commands the deprecated manage route still accepts. Use POST .../start and
POST .../stop instead.
Destinations to start at once with GoLive, by stream destination id. Leave it out to start
the stream with no destination publishing. Ignored by StopStream.
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"}