List theme variables
GET/v2/themes/{themeId}/variables
const url = 'https://api.ligr.live/rest/v2/themes/1/variables';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.ligr.live/rest/v2/themes/1/variables \ --header 'Authorization: Bearer <token>'Beta. This operation can change between minor versions. See Beta status.
Lists the variables of a theme your organization owns. An operator sets each value per competition, and the graphics read the value while they render.
The response carries the theme’s updatedAt. Send it back as ifUnchangedSince on the
next add, set or rm, so that write answers 409 TARGET_CHANGED if the theme moved.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The theme identifier
Responses
Section titled “Responses”Ok
Body of GET /v2/themes/{themeId}/variables.
updatedAt is the theme’s updatedAt at the time of this read. Send it back as
ifUnchangedSince on the next write to var add, set or rm this variable list.
object
One theme variable. An operator sets the value per competition; the graphics read it.
object
Equal to name for a variable this API created.
The value in force when a competition sets nothing. Null means no default.
Allowed values of an enum variable. Null for the other types.
True when the variable holds a colour, a font or another style value.
Example
{ "variables": [ { "type": "string" } ]}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 or variable 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"}