Skip to content

Set a graphic thumbnail

PUT/v2/themes/{themeId}/rive-graphics/{graphicId}/thumbnail

PUT
/v2/themes/{themeId}/rive-graphics/{graphicId}/thumbnail
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.

themeId
required
number format: double
graphicId
required
string
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
}

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"
}