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
- 200
- 400
- 404
- default
Validation result.
Error (RFC 9457 problem details).
Not found for the key: not_found, or template_not_found for a template or version. Templates, renders, files and webhooks are looked up in the workspace of the key, shared partials and workspaces in its organisation.
Error (RFC 9457 problem details).