Get Started
Portal api methods
Help

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
The message id which attachment will be removed. number 1234
attachmentid
sent in url
Specifies attachment id for deleting. 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 removed an attachment