Preview a template
Renders template markup against caller-supplied sample data and returns the output, without creating a template or generating a report. A Pdf template previews as the HTML stage that would feed the PDF engine. The whole request body is capped at 3211264 bytes and a larger one is refused with 413 before it is parsed; content and sampleData carry their own ceilings.
Autorizaciones
JWT bearer token issued by the identity provider.
Cuerpo
Template markup and the sample data to render it against.
Raw pongo2 template markup to render. At most 512 KiB, measured on the decoded bytes.
524288"Total: {{ ledger.accounts.0.balance }}"
One of Html, Csv, Txt, Xml or Pdf, matched case-insensitively. Decides the response content type only; defaults to Html when omitted or empty.
^([Hh][Tt][Mm][Ll]|[Cc][Ss][Vv]|[Tt][Xx][Tt]|[Xx][Mm][Ll]|[Pp][Dd][Ff])?$"Html"
Render context shaped as data source, then table, then rows. At most 1 MiB, measured on the raw JSON bytes sent for this member.
Respuesta
OK
Content type the rendered output should be displayed as.
"text/html"
How long the preview took, in milliseconds.
12
Rendered output. For a Pdf template this is the HTML stage that would feed the PDF engine.
"Total: 1500.00"
Non-fatal render notes, such as output having been truncated.

