Templates

Roll back to a version

Points live_version at an existing version. Nothing is re-rendered and no new version is created.

post/v1/templates/{template_id}/rollback

Request

  • Base URL: https://api-eu.dynamicdocumentapi.com
  • URL: https://api-eu.dynamicdocumentapi.com/v1/templates/{template_id}/rollback
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Path parameters

template_idstring required

Template id (tpl_…).

Headers

Idempotency-Keystring

Replays the stored response for 24 h; a different body with the same key → 422.

Request body

Response

created_atstring date-time required
default_optionsobject nullable required

Output options of the live version.

deleted_atstring date-time nullable required
descriptionstring required
draft_revisioninteger required
enginestring required

Engine channel, e.g. 2026.4.

idstring required

tpl_…

namestring required
objectstring
tagsstring[] required
thumbnail_urlstring uri nullable required
type'pdf_code' | 'pdf_markdown' | 'image_canvas' | 'docx' | 'pdf_form' required
  • pdf_code - pdf_code
  • pdf_markdown - pdf_markdown
  • image_canvas - image_canvas
  • docx - docx
  • pdf_form - pdf_form
updated_atstring date-time required

Changes

No recorded changes to this operation across all 2 revisions of this API.