Skip to content

Change an attachment

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

Changes the file name, description, parameters, language id or article number format id of an attachment. Only the fields that are sent are changed (null or left out means unchanged, so languageId and skuFormatId cannot be cleared: remove the attachment and add it again); the parameters, when they are sent, replace all of them. The report cannot be changed: remove the attachment and add another. A file attachment has only a file name and a description: renaming it does not move the stored file, and the new name needs an allowed file type. The rows of the language are updated in the same all-or-nothing save.

Parameters ​

Path parameters

locale  string
Locale code (e.g. 'sv', 'en').
attachmentId  string
The id of the attachment.

Request body ​

Response ​

The attachment after the change.