Users.settings.sendAs: update

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. Try it now.

Request

HTTP request

PUT 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 a Users.settings.sendAs resource.

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.

Send feedback about...

Need help? Visit our support page.