POST api/2.0/mail/messages/{id}/document
Attaches the Teamlab document to the message with the ID specified in the request.
Name |
Description |
Type |
Example |
id
sent in url
|
Message ID
|
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
|
Specifies if this message needs to be saved as a template or not
|
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
}