Templates
Replace the draft sources
Replaces the draft with the content fields of the template's type (see POST /v1/templates) or one content object. Send If-Match: <revision> (the revision of the draft you edited) to detect concurrent edits; a stale revision answers 409 draft_revision_conflict. The response carries the new revision in ETag. image_canvas drafts are compiled when published — and by version: draft renders, which answer 422 with JSON pointers under /template/draft when the draft does not compile.
put/v1/templates/{template_id}/draft
Request
- Base URL: https://api-eu.dynamicdocumentapi.com
- URL: https://api-eu.dynamicdocumentapi.com/v1/templates/{template_id}/draft
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Path parameters
template_idstring required
Template id (tpl_…).
Headers
If-Matchstring
Draft revision you based the edit on.
Request body
Response
Saved. ETag holds the new revision.
Changes
No recorded changes to this operation across all 2 revisions of this API.