PUT - Update Vacation Reply

Purpose

The API is used to update the Vacation Reply configured for 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

ParameterData TypeDescription
zuid* Integerzuid - 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* StringThe 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*StringDate from which the Vacation Response should be sent to the senders
toDate*StringDate 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*IntegerSending Interval - The number of days a
sendToStringWhether 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)

ParameterData TypeAllowed ValuesDescription
mode* String 

updateVacationReply

To add the Vacation Reply for the specified account

sendTo* String
  • all
  • contacts
  • noncontacts
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 (Using Admin Authentication)


				{
   "zuid": "1111111",
   "mode": "updateVacationReply",
   "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)


				{
   "mode": "updateVacationReply",
   "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"
   }
}