PUT api/2.0/mail/messages/attachment/export This function requires authentication

Description

Exports an attachment with the ID specified in the request to the folder with documents.

Parameters
Name Description Type Example
id_attachment
sent in body
Attachment ID number 1234
id_folder
sent in body
Folder ID (if this parameter is empty, the "My documents" folder is used)
optional
string some text
Example
PUT api/2.0/mail/messages/attachment/export
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "id_attachment": 1234,
  "id_folder": "some text"
}
Returns

Document ID in the folder with documents