Add a list element
POST/v2/themes/{themeId}/rive-graphics/{graphicId}/data-bindings/{id}/elements
const url = 'https://api.ligr.live/rest/v2/themes/1/rive-graphics/example/data-bindings/example/elements';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ifUnchangedSince":"example"}'};
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/themes/1/rive-graphics/example/data-bindings/example/elements \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ifUnchangedSince": "example" }'Beta. This operation can change between minor versions. See Beta status.
Adds a manual list element.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”object
Examplegenerated
{ "ifUnchangedSince": "example"}Responses
Section titled “Responses”Created
object
Id of the created or changed entity, or null for settings.
object
object
object
object
object
object
object
object
object
object
object
object
A Rive renderer release choice of a theme, or of one graphic. A graphic without one follows its theme.
object
The release for pinned, for example 2.41.0-r1.
How deep the graphic sits when several are on air. Higher covers lower. Absent: the default depth, 100 for a Rive graphic. A code graphic has 200.
Set when the request renamed a user expression. The rows whose expression still reads the old
$u name. The API does not change them. Update each one to the new name.
object
The kind of row whose expression still reads the old name.
Set when an enum binding of the draft reads a theme variable that has options the Rive enum does not list.
A warning, not an error: the write succeeded. The binding expression reads one enum theme variable, and some options of that variable are not values of the Rive enum. Rive ignores such a value, so on air the property keeps its last value. Make the options and the enum values the same, or change the expression.
object
The data binding id, for example Main.Typeface.
The theme variable that the expression reads, for example Typeface for $t.Typeface.
Options of the theme variable that the Rive enum does not list.
Values of the Rive enum that no option of the theme variable sets.
Example
{ "stateMachine": { "controlVariables": [ { "exitMode": "immediate" } ], "dataBindings": [ { "exposed": { "entityType": "player" }, "imageTransform": { "fit": "cover", "anchor": "center" } } ], "stateMachineInputs": [ { "type": "boolean" } ], "assets": [ { "type": "image", "exposed": { "entityType": "player" } } ], "renderer": "webgl2", "rendererRelease": { "policy": "latest" } }, "staleReferences": [ { "type": "dataBinding" } ]}