Set a graphic thumbnail
PUT/v2/themes/{themeId}/rive-graphics/{graphicId}/thumbnail
PUT
/v2/themes/{themeId}/rive-graphics/{graphicId}/thumbnail
const url = 'https://api.ligr.live/rest/v2/themes/1/rive-graphics/example/thumbnail';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"fileId":1}'};
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/themes/1/rive-graphics/example/thumbnail \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "fileId": 1 }'Beta. This operation can change between minor versions. See Beta status.
Sets the graphic’s thumbnail, the picture the control room shows for it.
Upload a PNG, JPEG or WebP image of at most 5 MB with POST v2/themes/{themeId}/rive-graphics/images first,
then send the fileId it returned. Send the x-ligr-edit-session header while an edit session is open.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”themeId
required
number format: double
graphicId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
fileId
required
fileId from POST v2/themes/{themeId}/rive-graphics/images, after the signed PUT succeeded. PNG, JPEG or WebP, at most 5 MB.
number format: double
Examplegenerated
{ "fileId": 1}Responses
Section titled “Responses”Ok
Media typeapplication/json
object
thumbnailUrl
required
Dashboard path of the stored thumbnail, for example /theme_assets/12/345/thumbnail.png?v=1759536000000.
string
updatedAt
required
ISO 8601 updatedAt of the draft after the write. Send it as ifUnchangedSince on the next write.
string
Examplegenerated
{ "thumbnailUrl": "example", "updatedAt": "example"}