POST api/2.0/mail/messages/{id}/document
Attaches Teamlab document to the specified message
Name |
Description |
Type |
Example |
id
sent in url
|
Message id for adding attachment
|
number
|
1234
|
fileId
sent in body
|
Teamlab document id.
|
string
|
some text
|
version
sent in body
|
Teamlab document version
|
string
|
some text
|
needSaveToTemp
sent in body
|
Need save to temp for templates
|
Bool value
|
true
|
POST api/2.0/mail/messages/1234/document
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"fileId": "some text",
"version": "some text",
"needSaveToTemp": true
}
Attached document as MailAttachment object