List code graphics
GET/v2/themes/{themeId}/code-graphics
const url = 'https://api.ligr.live/rest/v2/themes/1/code-graphics';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/code-graphics \ --header 'Authorization: Bearer <token>'Beta. This operation can change between minor versions. See Beta status.
Returns the working copy of every code graphic in the theme. The response leaves out the Rive graphics of the theme.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity identifier
The theme identifier
Responses
Section titled “Responses”Ok
A working code graphic.
id is the row identifier of the working copy. It changes on every publish.
stateMachine holds the runtime, the control variables and the user expressions.
lock is null when no one holds the graphic.
object
Stable graphic identifier. It does not change between versions.
Entity identifier
Version number of the editable working copy.
Runtime, control variables and user expressions of a code graphic.
The index signature keeps the keys. tsoa strips every key of a Record<string, unknown>,
because that type declares no properties.
object
Files of the bundle, sorted by name.
object
Path of the file inside the bundle, for example assets/app.js.
Content type recorded for the file.
Size of the file in bytes.
Content hash the client sent. Compare it to skip an unchanged upload.
Revision counter of this file. It increases every time the hash changes.
Time of the last change, in ISO 8601.
Published version numbers, in ascending order.
object
Name of the lock holder. An API key shows as API key <name>.
Example
[ { "type": "code" }]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 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"}