POST api/2.0/mail/autoreply/update/{mailboxId}
Updates or creates an autoreply with the parameters specified in the request.
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
|
Specifies whether to send an autoreply only to the contacts or not
|
Bool value
|
true
|
turnOnToDate
sent in body
|
Specifies whether to send an autoreply till the specified date or not
|
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 contents in the HTML format
|
string
|
some text
|
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"
}
Updated autoreply information
application/json
{
"status": 0,
"response": {
"mailboxId": 33,
"turnOn": true,
"onlyContacts": false,
"turnOnToDate": true,
"fromDate": "2020-10-01T17:04:32.0000000",
"toDate": "2020-10-01T17:04:32.0000000",
"subject": "subject",
"html": "html"
}
}
text/xml
<result>
<status>0</status>
<response>
<mailboxId>33</mailboxId>
<turnOn>True</turnOn>
<onlyContacts>False</onlyContacts>
<turnOnToDate>True</turnOnToDate>
<fromDate>2020-10-01T17:04:32.0000000</fromDate>
<toDate>2020-10-01T17:04:32.0000000</toDate>
<subject>subject</subject>
<html>html</html>
</response>
</result>