The VacationResponse object represents the state of vacation-response related settings for an account. It has the following properties:
String
The id of the object. This property is immutable. There is only ever one
vacation response object, and its id is "singleton"
.Boolean
Is the vacation response enabled?String
The message to send in response to messages when the vacation response is
enabled.There MUST only be exactly one VacationResponse object in an account. It MUST have the id "singleton"
.
To fetch the vacation response object, make a call to getVacationResponse
. It takes the following argument:
String|null
The Account to get the vacation response for. If null
, the primary account is used.The response to getVacationResponse is called vacationResponse. It has the following arguments:
String
The id of the account used for the call.VacationResponse[]
An array containing the single VacationResponse object.Sets properties on the vacation response object. It takes the following arguments:
String|null
The Account to set the vacation response for. If null
, the primary account is used.String[ContactGroup]|null
A map of id (“singleton”) to the VacationResponse object with new values for the properties you wish to change. The object may omit any property; only properties that have changed need be included.If any of the properties in the update are invalid (immutable, wrong type), the server MUST reject the update with a SetError of type invalidProperties
. The SetError object SHOULD contain a property called properties of type String[]
that lists all the properties that were invalid. The object MAY also contain a description property of type String
with a user-friendly description of the problems.
The response is called vacationResponseSet. It has the following arguments:
String[]
Contains the single id (“singleton”) if the vacation response was successfully updated.String[SetError]
A map of id (“singleton”) to a SetError object if the update failed.A SetError object has the following properties:
String
The type of error.String|null
A description of the error to display to the user.The following errors may be returned instead of the vacationResponseSet response:
invalidArguments
: Returned if one of the arguments is of the wrong type, or otherwise invalid. A description
property MAY be present on the response object to help debug with an explanation of what the problem was.