Skip to main content

Update PDF Template

PUT 

/api/pdf-templates/:id

Updates the content of a PDF template and snapshots the previous content as a new version.

Required scope: settings:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Personal Access Token (sent as a Bearer token) with the settings scope (write access).

Fields:

  • content (required): the template markup string.
  • updated_at (optional): the template's last-known updated_at timestamp. When supplied it enables optimistic-lock checking, so an edit made by someone else since that timestamp is rejected with a 409 instead of being silently overwritten. Re-send without updated_at to overwrite deliberately.

preview_destinations lists the destination countries a preview can be rendered against, each as a code and a label. Pass one of those codes as destination_country when previewing to see how country-conditional sections render.

Request

Responses

OK

Response Headers
    Content-Type