Skip to main content

Update a template

PUT 

/v1/docgen/templates/:id

Updates the template. When the update changes versioned content (templateContent, cssStyles, headerTemplate, footerTemplate, or dataSchema), a new version snapshot is created automatically and the template's version is incremented; the new version number is returned as version in the response. Previous versions can be listed and restored via the versions endpoints. Metadata-only updates (name, description) do not create a version. The signature template that a generated document is sent with is linked when the template is created by POST /v1/docgen/templates/import-from-source, and that link cannot be changed by this endpoint.

Request​

Responses​

Template updated. Includes version when a new version snapshot was created by this update.

Response Headers
    X-Request-Id

    Correlation id for this request, returned on every response (success and error). Quote it when contacting support to pinpoint the exact request, and use it to correlate your own logs. It is the same 128-bit id as the trace-id segment of the traceparent header.

    traceparent

    W3C Trace Context identifier for this request, returned on every response. Send your own traceparent on a request to have it adopted, so a multi-call workflow shares one trace. Format: 00-<32-hex trace-id>-<16-hex span-id>-<2-hex flags>.