PUT - Add Vacation Reply for an account
Purpose
The API is used to add Vacation Reply to the account. This can be done by the Admin for a user or by the user for himself.
Request URL
Using Admin Authentication:
http://<hostname>/api/organization/<zoid>/accounts/<accountid>
Using User Authentication:
http://<hostname>/api/accounts/<accountid>
Request Parameters
Parameter | Data Type | Description |
zuid* | Integer | zuid - The unique Zoho User Identifier for the organization |
mode* | String | mode - The mode of the From Email address added to the account. |
vacationRespose* | Object | Vacation Response Object with all the individual parameters. |
subject* | String | The Subject of the email, which should be sent as Vacation Response |
content* | String | The content of the email, to be sent as Vacation Response. |
fromDate* | String | Date from which the Vacation Response should be sent to the senders. |
toDate* | String | Date upto which the Vacation Response should be sent to the senders |
forAllAccts* | Boolean | Whether the Vacation Response is applicable to all accounts or not. |
sendingInt* | Integer | Sending Interval - The number of days a |
sendTo | String | Whether the Vacation Reply should be sent to all senders or only for emails from known contacts. |
* - Mandatory parameters
Note:
The date included in the Request body should also contain the time (Ex: 00:00:00) and should be in the same format as the Account settings date format of the user.
Request Body (JSON Object)
Parameter | Data Type | Allowed Values | Description |
mode* | String | addVacationReply | To add the Vacation Reply for the specified account |
sendTo* | String |
| The Vacation Reply would be sent to the sender, based on the value for this parameter. |
* - Mandatory parameters
Response Codes
Please refer Response Codes.
Sample request
Copied{
"zuid": "1111111",
"mode": "addVacationReply",
"vacationResponse": {
"subject": "Away on Vacation!",
"content": "Will not be available from 13-01-18 to 19-01-18 as I'm away on vacation. Contact me on my personal number in case of emergencies.",
"fromDate": "13/01/2018 00:00:00",
"toDate": "19/01/2018 00:00:00",
"forAllAccts": "true",
"sendingInt": "3",
"sendTo": "all"
}
}
Sample request (Using User Authentication)
Copied{
"mode": "addVacationReply",
"vacationResponse": {
"subject": "Away on Vacation!",
"content": "Will not be available from 13-01-18 to 19-01-18 as I'm away on vacation. Contact me on my personal number in case of emergencies.",
"fromDate": "13/01/2018 00:00:00",
"toDate": "19/01/2018 00:00:00",
"forAllAccts": "true",
"sendingInt": "3",
"sendTo": "all"
}
}