Skip to main content

Validate a template with data

POST 

/templates/:id/validate

Checks a template version and data without rendering: syntax and analysis of the body, header and footer, includes without a stored partial, errors that only happen when the template runs with the data, and the data against the stored data schema (when the version stores one). For Word and PowerPoint templates the tags of the stored file are checked instead of HTML, and their diagnostics name the part and paragraph. Free; not metered and not rate limited. Problems with the template are diagnostics in a 200 response, not errors. Needs template:read.

Request​

Responses​

Validation result.