Browse the help center

Add template file

Uploads and attaches a new file to the specified template using a multipart form submission.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/template/template-file/edit.do

Uploads and attaches a new file to the specified template using a multipart form submission. The file is stored with its original filename, MIME content type, and an MD5 checksum for integrity verification. The macro key for the file must be unique within the template and must not conflict with any reserved system macros or existing property keys. The template version is automatically incremented after the file is added. Requires edit permission on the template.

Query Params

templateId integer required

Unique numeric identifier of the template to add the file to

300

key string

File key used in template content (format: $$KEY$$)

$$LOGO$$

Body

A multipart form: commonsMultipartFile (file).

Responses

200

Operation result with success status

400

Bad request — invalid or missing parameters

401

Authentication error

403

Forbidden — insufficient permissions

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.