v1

latestOpenAPI 3.0.3Proprietary2026-07-13182655.4 KB
Contract Templates

Validate a contract template

Validates a contract template definition (name, content, placeholders) without persisting it. Returns 204 on success or 422 with validation errors.

post/staffsign/contract_templates/validate

Request body

namestring required

Template name

contentstring required

Template markup in HTML with dynamic placeholders. Supports {{ employer.firstName }}, {{ employee.email }} etc. Twig control structures ({% if %}, {% for %}) are not allowed.

descriptionstring nullable

Optional description of the template's purpose or use case

renderLogoboolean

Whether to render the organization logo in the contract PDF header. Defaults to true.

Response

Template is valid