Method: users.settings.updateLanguage
Updates language settings.
If successful, the return object contains the displayLanguage
that was saved for the user, which may differ from the value passed into the request. This is because the requested displayLanguage
may not be directly supported by Gmail but have a close variant that is, and so the variant may be chosen and saved instead.
HTTP request
PUT https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/language
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
userId |
string
User's email address. The special value "me" can be used to indicate the authenticated user.
|
Request body
The request body contains an instance of LanguageSettings
.
Response body
If successful, the response body contains an instance of LanguageSettings
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/gmail.settings.basic
For more information, see the Authorization guide.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-04 UTC.
[null,null,["Last updated 2024-09-04 UTC."],[[["Updates the language settings for a Gmail user, potentially using a close variant if the requested language isn't directly supported."],["Requires a PUT request to a specific endpoint with the user's email address as a path parameter."],["The request body and successful response body both utilize the LanguageSettings object."],["Needs authorization with the `https://www.googleapis.com/auth/gmail.settings.basic` scope."]]],["This content details updating language settings for a user via the Gmail API. A `PUT` request is sent to a specific URL (`https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/language`), using the user's email or \"me\" as a `userId` path parameter. The request and response body both use a `LanguageSettings` object. The required authorization scope is `https://www.googleapis.com/auth/gmail.settings.basic`. The server might return a different `displayLanguage` than requested if a closer variant is available.\n"]]