Skip to content

Attach a report

POST
/communication/template-text/template-texts/{id}/locales/{locale}/attachments/reports
Required scope: templatetext:update

Attaches a report to a language of an e-mail template. The report is generated as a PDF when the mail is sent. The url that Ramos reads (ramos://report/?report.report_id=&name=value...) is built here from the parameters, in the order they are given, then report.skuFormat.id and report.language.id (in that order) if they are set. Values are not URL-encoded, so a {placeholder} is replaced when the mail is sent; the file name and the url can then be longer than they are here, and Ramos allows 255 characters for the name and 512 for the url, so leave room. A language can have at most 20 attachments. The attachment is written to every active row of the language in notificationtemplateattachment (each country row and the row of all other countries), in the same all-or-nothing save as any other change of the template, and the history gets an entry with the unchanged body. Only e-mail templates can have attachments.

Parameters ​

Path parameters

locale  string
Locale code (e.g. 'sv', 'en').

Request body ​

Response ​

The attachment that was added.