Update theme settings
PATCH/v2/themes/{themeId}
const url = 'https://api.ligr.live/rest/v2/themes/1';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","requireRiveSource":true,"rendererRelease":{"policy":"latest","release":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.ligr.live/rest/v2/themes/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "requireRiveSource": true, "rendererRelease": { "policy": "latest", "release": "example" } }'Beta. This operation can change between minor versions. See Beta status.
Changes the settings of a theme your organization owns: its name, whether Rive imports need editable source, and the Rive renderer release of its working graphics. Omitted fields keep their stored value. Live overlays render the active theme version, so they show no change.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity identifier
The theme identifier
Request Bodyrequired
Section titled “Request Bodyrequired”Body of PATCH /v2/themes/{themeId}. Omitted fields keep their stored value.
rendererRelease sets the Rive renderer release of the theme’s working graphics. latest
follows the newest release of the Rive major; pinned keeps release, for example 2.44.0-r1.
A published graphic version keeps the release it recorded.
object
Refuse Rive imports without editable source (.rev or project ZIP). Graphics already in the
theme keep what they stored.
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.
Responses
Section titled “Responses”Ok
object
Entity identifier
Sport keys the theme supports, for example football.
Theme version the overlays render. Null means no version is active.
Published theme version numbers, in ascending order.
object
Stable graphic identifier. It does not change between versions.
code or rive.
Version number of the editable working copy.
Published version numbers, in ascending order.
True when every Rive import must carry editable source (.rev or project ZIP).
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.
True when every organization can use the theme. Only LIGR staff change it, in the dashboard.
Example
{ "rendererRelease": { "policy": "latest" }}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 not found
object
Examplegenerated
{ "message": "example"}Organization has made too many requests
object
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
object
Examplegenerated
{ "message": "example"}