Se for bem-sucedido, o objeto de retorno conterá o displayLanguage que foi salvo para o usuário, que pode ser diferente do valor transmitido para a solicitação. Isso ocorre porque a displayLanguage solicitada pode não ser diretamente compatível com o Gmail, mas tem uma variante próxima. Assim, é possível escolher e salvar essa variante.
Solicitação HTTP
PUT https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/language
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2024-09-05 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"]]