DELETE api/2.0/mail/messages/{messageid}/attachments/{attachmentid} This function requires authentication

Description

Deletes the selected attachment from the message with the ID specified in the request.

Parameters
Name Description Type Example
messageid
sent in url
Message ID number 1234
attachmentid
sent in url
Attachment ID number 1234
Example
DELETE api/2.0/mail/messages/1234/attachments/1234
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

The message ID which attachment was removed