PUT /gmail/v1/users/{userId}/settings/vacation
Changed onUpdates vacation responder settings. For more information, see Manage vacation settings with the Gmail API.
Request
- Base URLhttps://gmail.googleapis.com
- AuthOAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/gmail.settings.basicAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/gmail.settings.basic
Path parameters
User's email address. The special value "me" can be used to indicate the authenticated user.
Query parameters
V1 error format.
OAuth access token.
Data format for response.
JSONP
Selector specifying which fields to include in a partial response.
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
OAuth 2.0 token for the current user.
Returns response with indentations and line breaks.
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Legacy upload protocol for media (e.g. "media", "multipart").
Upload protocol for media (e.g. "raw", "multipart").
Request body
Vacation auto-reply settings for an account. These settings correspond to the "Vacation responder" feature in the web interface.
Flag that controls whether Gmail automatically replies to messages.
An optional end time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives before the end time. If both startTime and endTime are specified, startTime must precede endTime.
Response body in HTML format. Gmail will sanitize the HTML before storing it. If both response_body_plain_text and response_body_html are specified, response_body_html will be used.
Response body in plain text format. If both response_body_plain_text and response_body_html are specified, response_body_html will be used.
Optional text to prepend to the subject line in vacation responses. In order to enable auto-replies, either the response subject or the response body must be nonempty.
Flag that determines whether responses are sent to recipients who are not in the user's list of contacts.
Flag that determines whether responses are sent to recipients who are outside of the user's domain. This feature is only available for Google Workspace users.
An optional start time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives after the start time. If both startTime and endTime are specified, startTime must precede endTime.
Response
Successful response
Vacation auto-reply settings for an account. These settings correspond to the "Vacation responder" feature in the web interface.
Flag that controls whether Gmail automatically replies to messages.
An optional end time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives before the end time. If both startTime and endTime are specified, startTime must precede endTime.
Response body in HTML format. Gmail will sanitize the HTML before storing it. If both response_body_plain_text and response_body_html are specified, response_body_html will be used.
Response body in plain text format. If both response_body_plain_text and response_body_html are specified, response_body_html will be used.
Optional text to prepend to the subject line in vacation responses. In order to enable auto-replies, either the response subject or the response body must be nonempty.
Flag that determines whether responses are sent to recipients who are not in the user's list of contacts.
Flag that determines whether responses are sent to recipients who are outside of the user's domain. This feature is only available for Google Workspace users.
An optional start time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives after the start time. If both startTime and endTime are specified, startTime must precede endTime.
Changes
- breaking
removed the request body
- breaking
removed the media type
*/*for the response with the status
- breaking