POST api/2.0/mail/messages/attachment/add
Adds an attachment to the draft with the ID specified in the request.
Name |
Description |
Type |
Example |
id_message
sent in body
|
Message ID
|
number
|
1234
|
name
sent in body
|
File name
|
string
|
some text
|
file
sent in body
|
File stream
|
A stream for uploading files without multipart request
|
N/A
|
content_type
sent in body
|
File content type
|
string
|
some text
|
POST api/2.0/mail/messages/attachment/add
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"id_message": 1234,
"name": "some text",
"file": "N/A",
"content_type": "some text"
}