Adds an iCal body to the draft with the ID specified in the request.
Name | Description | Type | Example |
id_message
sent in body
|
Message ID | number | 1234 |
ical_body
sent in body
|
iCal body | string | some text |
POST api/2.0/mail/messages/calendarbody/add Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "id_message": 1234, "ical_body": "some text" }
Mail attachment
application/json
{ "status": 0, "response": { "fileId": 1234, "fileName": "fileName", "size": 1234, "contentType": "contentType", "needSaveToTemp": true, "contentId": "contentId", "fileNumber": 333, "storedName": "storedName", "streamId": "streamId", "savedToMyDocuments": true, "tempStoredUrl": "tempStoredUrl" } }
text/xml
<result> <status>0</status> <response> <fileId>1234</fileId> <fileName>fileName</fileName> <size>1234</size> <contentType>contentType</contentType> <needSaveToTemp>True</needSaveToTemp> <contentId>contentId</contentId> <fileNumber>333</fileNumber> <storedName>storedName</storedName> <streamId>streamId</streamId> <savedToMyDocuments>True</savedToMyDocuments> <tempStoredUrl>tempStoredUrl</tempStoredUrl> </response> </result>