Upload Template

Back to overview

Endpoint

POST https://api.reporting.cloud/v1/templates/upload

Stores an uploaded template in the template storage (*.doc, *.docx, *.rtf and *.tx)

Request Parameters

Query parameter Value Type Value
templateName String The filename of the template in the template storage. Existing files with the same filename will be overwritten.
Request body data Value type Value
Base64 encoded string A document encoded as a Base64 string. Supported document formats are .doc, .docx, .rtf and .tx.

Response Format

On success, the HTTP status code in the response header is Created (201).

A Forbidden (403) is returned, if the user is not authorized or the template quota is exceeded.

A Bad Request (400) is returned, if the template has a wrong format or is corrupted.

Examples

Note: The code examples available for this method do not represent all supported programming languages.

Try this in the Web API Sandbox

Open Sandbox