Set vacation reply
PUT/api/accounts/:accountId/sieve/vacation
Turns the automatic out-of-office reply on or off and saves its text and dates; returns the saved settings wrapped in vacation. The body is not wrapped: enabled, subject, message, startDate and endDate are read from its top level.
message is HTML and must not be blank when enabled is true. Dates are YYYY-MM-DD or date-times, and the end must not be before the start; outside that window no reply is sent. days is always 4 (each sender gets at most one reply in that time), and addresses is always set to the account's identity addresses, so clients cannot change either. The Sieve script is rewritten and activated, keeping filters and forwarding.
Invalid input, or a Sieve server without the vacation (or, with dates, date and relational) extension, returns 400.
Request
Responses
- 200
- 400
- 401
- 404
- 424
Vacation settings.
Request failed.
The session has no mailbox access token. code is mail_token_missing; sign in again.
The account does not exist or belongs to another user.
The IMAP, SMTP or Sieve server, or the platform, refused the request or could not be reached.