Send a graphics command
POST/v2/overlays/{overlayId}/graphics/commands
const url = 'https://api.ligr.live/rest/v2/overlays/1/graphics/commands';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"command":"hideAll"}'};
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/graphics/commands \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "command": "hideAll" }'Fire a show, hide, update, or hideAll command on a graphic by UUID or name.
Pass variableValues to set values directly. For control-room preset semantics
(automatic defaults resolution), use /control-room/graphics instead.
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
Action to perform on the graphic.
Graphic UUID. Used directly as the key in manualGraphicState — no
lookup. Exactly one of graphicUuid or name is required for any
command except hideAll; if both are provided, graphicUuid wins.
Graphic human name (as configured in the theme). The server looks it
up in the overlay’s theme and resolves to the UUID before dispatching.
Must be a graphic name, not a UUID — pass UUIDs via graphicUuid.
Example
{ "command": "hideAll"}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"}