Skip to main content
POST
Create a template
Need a sample to test this endpoint? Click here to download a sample .tpl file.

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Idempotency
string

Client-provided idempotency key that prevents duplicate template creation

Body

multipart/form-data

Template multipart form

description
string
required

Human-readable template description

Example:

"Monthly financial report"

outputFormat
string
required

Generated report output format

Example:

"html"

template
file
required

Pongo2 template file

Response

Created

createdAt
string<date-time>

Template creation timestamp in UTC

Example:

"2021-01-01T00:00:00Z"

description
string

Human-readable template description

Example:

"Monthly financial report"

fileName
string

Stored template filename

Example:

"0196159b-4f26-7300-b3d9-f4f68a7c85f3_1744119295.tpl"

id
string

Unique template identifier

Example:

"00000000-0000-0000-0000-000000000000"

outputFormat
string

Format generated from this template

Example:

"HTML"

updatedAt
string<date-time>

Most recent template update timestamp in UTC

Example:

"2021-01-01T00:00:00Z"

warnings
object[] | null

Non-fatal mapped-field validation warnings returned when a data source is unavailable

Example: