Declaration Templates (Admin)

Preview Template

Render a preview PDF with sample data.

Body: template_type: str (optional, default 'html') design_json: dict (preferred for html — block-based editor output) html_content: str (legacy — required if design_json absent) css_content: str (optional, html only) id_modulo: int (required for html type) pdf_template_url: str (required for pdf type)

post/api/declaration-templates/preview

Headers

x-api-tokenstring nullable

Request body

object required

Response

Successful Response

{"stackTrail":"paths:/api/declaration-templates/preview:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes