Show, update or hide graphic
POST/v2/overlays/{overlayId}/control-room/graphics
const url = 'https://api.ligr.live/rest/v2/overlays/1/control-room/graphics';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"action":"show","presetId":1091}'};
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/v2/overlays/1/control-room/graphics \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "action": "show", "presetId": 1091 }'Fire a control-room preset by ID. The server resolves the preset’s graphic UUID
and merges its configured control-room variable values with any variableValues overrides.
show puts the preset on air. update sends the same values to a preset graphic that is
already on air, and returns 400 when it is not. hide takes it off air.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity identifier
The overlay id
Request Bodyrequired
Section titled “Request Bodyrequired”object
show puts the preset graphic on air. update sends new values to a preset graphic
that is already on air; the live values become the preset values plus variableValues.
hide takes the graphic off air. For hideAll, use the /graphics/commands endpoint.
Control-room graphic (preset) id. The server resolves the preset’s
graphic UUID and merges its configured control-room variable values
with any variableValues overrides.
Example
{ "action": "show", "presetId": 1091}Responses
Section titled “Responses”Ok
object
Entity identifier
Construct a type with a set of properties K of type T
object
Example
{ "overlayId": 2300003, "manualGraphicState": { "Scoreboard": { "_ligr_presetId": 101, "variableValues": { "hide": false } } }}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"}Overlay 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"}