Get Started
Portal api methods
Help

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

Description

This method needed for update or create autoreply.

Parameters
Name Description Type Example
mailboxId
sent in url
Id of updated mailbox. number 1234
turnOn
sent in body
New autoreply status. Bool value true
onlyContacts
sent in body
If true then send autoreply only for contacts. Bool value true
turnOnToDate
sent in body
If true then field To is active. Bool value true
fromDate
sent in body
Start date of autoreply sending. Date and Time 2011-10-1
toDate
sent in body
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. 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