Update a Template
Use this endpoint to update a template. The request is sent as multipart/form-data and accepts partial updates.
descriptioncan be updated on its own.template(the.tplfile) can be sent on its own. When sent withoutoutputFormat, the file is validated against the template’s existingoutputFormat.outputFormatcannot be sent on its own. SendingoutputFormatwithout a newtemplatefile returns a400error.
The response may include warnings when schema validation could not fully validate one or more data sources referenced by the new template. The template is still updated.
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.
Path Parameters
Unique identifier of the template that you want to retrieve (UUID).
Body
The new .tpl file. Optional. When provided without outputFormat, the file is validated against the template's existing outputFormat.
The output format generated by the new template. Optional. Only accepted together with a new template file. Sending outputFormat without template returns a 400 error.
HTML, CSV, XML, PDF, TXT A brief description of the template. Optional.
Response
Indicates that the template was successfully updated.
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.

