Update a destination
POST/v1/streams/destinations/{destinationId}
const url = 'https://api.ligr.live/rest/v1/streams/destinations/1';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","type":"youtube","transportProtocol":"rtmp","feedType":"program","url":"example","key":"example"}'};
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/destinations/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "type": "youtube", "transportProtocol": "rtmp", "feedType": "program", "url": "example", "key": "example" }'Updates a destination. A field you leave out keeps its value. A change to url or key
applies at the next start of a stream that uses the destination.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity identifier
The destination identifier
Request Bodyrequired
Section titled “Request Bodyrequired”object
Responses
Section titled “Responses”Ok
A saved destination of the organization. url and key are the server URL and the stream key
for a push destination. A pull destination has no url and key; LIGR serves it at pullUrl.
object
Entity identifier
program carries the graphics. clean is the picture without them.
For a pull destination: the URL a player or a relay pulls from.
True for a destination created for one match by createAndLinkOneOffDestination.
Example
{ "type": "youtube", "transportDirection": "push", "transportProtocol": "rtmp", "feedType": "program"}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"}Destination 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"}