Get Started
Usage API
More information

POST api/2.0/mail/messages/{id}/document This function requires authentication

Description

Attaches the Teamlab document to the message with the ID specified in the request.

Parameters
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
Example
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
}
Returns

Attached document