Get Started
Usage API
More information

POST api/2.0/mail/autoreply/update/{mailboxId} This function requires authentication

Description

Updates or creates an autoreply with the parameters specified in the request.

Parameters
Name Description Type Example
mailboxId
sent in url
Mailbox ID number 1234
turnOn
sent in body
New autoreply status Bool value true
onlyContacts
sent in body
If true, then send autoreply only to contacts Bool value true
turnOnToDate
sent in body
If true, then the "toDate" field is active Bool value true
fromDate
sent in body
New start date of autoreply sending Date and Time 2011-10-1
toDate
sent in body
New end date of autoreply sending Date and Time 2011-10-1
subject
sent in body
New autoreply subject string some text
html
sent in body
New autoreply value in the HTML format string some text
Example
POST api/2.0/mail/autoreply/update/1234
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "turnOn": true,
  "onlyContacts": true,
  "turnOnToDate": true,
  "fromDate": "2008-04-10T06-30-00.000Z",
  "toDate": "2008-04-10T06-30-00.000Z",
  "subject": "some text",
  "html": "some text"
}
Returns

Updated autoreply information