Update a preset
PUT/v2/control-rooms/{roomId}/presets/{presetId}
const url = 'https://api.ligr.live/rest/v2/control-rooms/1/presets/1';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","sectionId":"example","variableValues":{"additionalProperty":"example"},"exposeVariables":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.ligr.live/rest/v2/control-rooms/1/presets/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "sectionId": "example", "variableValues": { "additionalProperty": "example" }, "exposeVariables": [ "example" ] }'Beta. This operation can change between minor versions. See Beta status.
Renames or moves a preset, or replaces its variable set from the active published manifest. Send variableValues and exposeVariables together; the stored set becomes exactly what you send. Position, scale and other dashboard settings on the preset are kept. A variable that stays in the set keeps its dashboard display type, exit mode and hidden state; naming it in exposeVariables shows it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity identifier
Entity identifier
Request Bodyrequired
Section titled “Request Bodyrequired”Omitted fields keep their stored value. When variableValues or exposeVariables is present, the preset’s variable set is replaced from the active published graphic manifest. Variables that stay in the set keep their dashboard display type, exit mode and hidden state.
object
Moves the preset to the end of another section of the same room.
Names of control variables to expose in the control room without a value. Use this for fact, stat, team, player and match variables; operators pick the value live.
Examplegenerated
{ "name": "example", "sectionId": "example", "variableValues": { "additionalProperty": "example" }, "exposeVariables": [ "example" ]}Responses
Section titled “Responses”Ok
Use the returned id as presetId with the overlay control-room graphics endpoint.
object
Entity identifier
Entity identifier
Every control variable operators can see on this preset, with or without a stored value.
Examplegenerated
{ "id": 1, "controlRoomId": 1, "sectionId": "example", "graphicId": "example", "name": "example", "orderIndex": 1, "variableValues": { "additionalProperty": "example" }, "exposedVariables": [ "example" ]}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"}Theme, control room, section, or graphic 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"}