Enterprise

Add, duplicate, replace, edit, delete or reorder pages of a template without re-sending the whole design

Available only to Enterprise-plan workspaces and first-party clients.

patch/studio/templates/{templateId}/update-pages

Request

  • Base URL
    https://api.orshot.com/v1
  • URL
    https://api.orshot.com/v1/studio/templates/{templateId}/update-pages
  • Auth
    HTTP bearer

Path parameters

templateIdstring required

Query parameters

includeThumbnailsboolean

When true, the response waits for the new thumbnails of the changed pages. Otherwise they are generated in the background.

includeVideoThumbnailsboolean

When true and at most 2 changed pages are animated, the response waits for their animated previews and returns them in template.pages_meta[].video_thumbnail_url. Otherwise they are generated in the background.

Request body

allow_reindexboolean

Required (true) when the operations change the number of any existing page: deleting a page that isn't the last, inserting or duplicating somewhere other than the end, or moving.

base_updated_atstring

The template's updated_at from your last read. If the template changed since, nothing is written and you get 409. Without it, operations apply to the latest version.

embed_user_idstring

Assign the template to an embed user, same as Update Template Modifications.

Response

Successful response

object required

Changes