Skip to content

updateWidgetPreviewImage

PUT
/api/v1/widgets/{id}/preview-image
curl --request PUT \
--url https://example.com/api/v1/widgets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/preview-image \
--header 'Content-Type: image/jpeg' \
--data binary

Stores the frozen image captured from the actual Widget editor render. Requires an editor-capable dashboard session and CSRF token. The server accepts only a 960 by 540 JPEG no larger than 500 KB; Widget configuration updates clear the prior snapshot so stale renders are never shown.

id
required
string format: uuid
renderedUpdatedAt
string format: date-time

The Widget asset updatedAt the image was rendered from. When present and the Widget has changed since, the server refuses the image with 409 widget_preview_stale. Omit it to store unconditionally.

Media typeimage/jpeg
string format: binary
<= 512000 characters

Widget preview image stored

Widget not found

The Widget changed after the preview was rendered (widget_preview_stale)

Preview image exceeds 500 KB

Preview is not a valid 960 by 540 JPEG