Upload a Template
Use this endpoint to upload a new template to the system. It accepts a .tpl file that defines the structure and logic of the report.
The file must be formatted according to the desired output type — HTML, XML, CSV, PDF, or TXT — using Reporter plugin blocks where applicable.
Regardless of the format, the file must always be saved with a .tpl extension for the template to function correctly.
Documentation Index
Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
Use this file to discover all available pages before exploring further.
Headers
The authorization token in the 'Bearer ' format.
Important: This header is required if your environment has Access Manager enabled. For more information, refer to the Access Manager documentation.
The request content type. Important: For this endpoint, it must be multipart/form-data.
The unique identifier of the Organization associated with the request.
Optional idempotency key for safe retries. If omitted, the server may generate one automatically.
See Retries and idempotency for details.
Body
The .tpl file you've created to serve as the template definition.
The format of the report that the template will generate.
HTML, CSV, XML, PDF, TXT "TXT"
A brief description about the template.
"List of holders"
Response
Indicates that the template was successfully created.
The response includes the X-Idempotency-Replayed header.
If the value is false, the request was just processed. If the value is true, the response is a replay of a previously processed request.
The response may also include warnings when schema validation could not fully validate one or more data sources referenced by the template. The template is still created.
See Retries and idempotency for more details.
Details about the template that was created or updated.
Unique ID that identifies the template (UUID format).
The format of the generated output (e.g., HTML, CSV, PDF, TXT, XML).
Briefly describes what the template is for or what it contains.
The name of the template file as stored in the system. Follows the <template_id>.tpl format.
Timestamp indicating when the template was created.
Timestamp indicating the last time the template was updated.
Returned when schema validation could not fully validate one or more data sources referenced by the template. The create or update operation still succeeds. Absent when no warnings were produced.

