Users.settings.sendAs: patch

Requires authorization

Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.

Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority. This method supports patch semantics. Try it now.

Request

HTTP request

PATCH https://www.googleapis.com/gmail/v1/users/userId/settings/sendAs/sendAsEmail

Parameters

Parameter name Value Description
Path parameters
sendAsEmail string The send-as alias to be updated.
userId string User's email address. The special value "me" can be used to indicate the authenticated user.

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/gmail.settings.basic
https://www.googleapis.com/auth/gmail.settings.sharing

Request body

In the request body, supply the relevant portions of a Users.settings.sendAs resource, according to the rules of patch semantics.

Response

If successful, this method returns a Users.settings.sendAs resource in the response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Enviar comentarios sobre…

¿Necesitas ayuda? Visita nuestra página de asistencia.