post http://127.0.0.1:4005/v1/templates
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.
You need to structure the .tpl
file based on the format you want for the final output (HTML, XML, CSV, or TXT). For example, if you're generating an XML report, the file should follow XML structure and use the Smart Templates plugin blocks.
But no matter the format, make sure to save the file with a .tpl
extension. That’s required for the template to work properly.