To upload the document templates written in Apache FreeMarker XML format and related image files simultaneously, use the upload endpoint.
You can set the template to be valid for a certain period of time. Within this period of time, the template is active and only active templates can be used. If the end time is set as null, there is no expiration time for the template.
Using the same API endpoint, you can also upload the text document template without accompanying image files, which you can add separately later. To add the image files separately to the created template, use the API endpoint.