Метод «Удалить вложение»

Endpoint: DELETE {hostname}/dh-email-notifications-service/api/v1/templates/{templateId}/attachments/{attachmentId}

Метод позволяет удалить вложение.

Более подробное описание метода находится в yaml файле «dh-email-notifications_service», который расположен в папке с документацией.

Маппинг параметров запроса

Входящие параметры Способ передачи параметров Требования к заполнению
templateId Path Идентификатор шаблона (id), полученный методом GET{hostname}/dh-email-notifications-service/api/v1/templates
attachmentId Path Идентификатор вложения, полученный методом GET{hostname}/dh-email-notifications-service/api/v1/templates/{templateId}/attachments

Пример запроса:

curl --location --globoff --request DELETE 'https://docshouse.ldm.lanit.ru/dh-gateway-api-service/dh-email-notifications-service/api/v1/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6/attachments/4fa23f36-5117-4562-b3fc-2c963f66afa6' \

--header 'accept: */*' \

--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36' \

--header 'Authorization: Bearer