Appearance
DELETE
/communication/template-text/template-texts/{id}/locales/{locale}/attachments/{attachmentId}Required scope:
templatetext:updateRemoves an attachment from a language and its rows from notificationtemplateattachment, in the same all-or-nothing save as any other change of the template. The file of a file attachment is not deleted from the file share, because a mail that is queued already has its path (the old editor leaves its files too).
Parameters ​
Path parameters
locale stringLocale code (e.g. 'sv', 'en').
attachmentId stringThe id of the attachment.
Response ​
The attachment was removed.
| Error code | Description |
|---|---|
attachment-not-found | The language has no attachment with the id. |
attachments-not-supported | The template is an SMS or an invoicetext; only an e-mail can have attachments. |
locale-not-found | The template does not have the locale. |
template-changed | Another request changed the template after it was read, so nothing was saved. Reload the template and try again. |
template-not-found | No template with the given code exists for the current company. |