Method: users.settings.sendAs.patch
Исправьте указанный псевдоним отправки как.
HTTP-запрос
PATCH https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
userId | string Адрес электронной почты пользователя. Специальное значение «я» может использоваться для обозначения аутентифицированного пользователя. |
sendAsEmail | string Псевдоним отправки как, который необходимо обновить. |
Тело запроса
Тело запроса содержит экземпляр SendAs
.
Тело ответа
В случае успеха тело ответа содержит экземпляр SendAs
.
Области авторизации
Требуется одна из следующих областей OAuth:
-
https://www.googleapis.com/auth/gmail.settings.basic
-
https://www.googleapis.com/auth/gmail.settings.sharing
Дополнительную информацию см. в руководстве по авторизации .
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-09-05 UTC.
[null,null,["Последнее обновление: 2024-09-05 UTC."],[[["This document outlines how to update a specific send-as alias in Gmail using the PATCH method."],["It involves providing the user's email address and the target send-as alias as path parameters."],["The request should include a `SendAs` object in the body and requires specific authorization scopes."],["A successful response will contain an updated `SendAs` object."]]],["This document outlines the process to update a specified send-as alias within Gmail settings. A `PATCH` request is sent to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}`, using the user's email and the alias to be updated as path parameters. The request body includes the updated `SendAs` instance, while a successful response returns the modified `SendAs` instance. Authorization requires specific OAuth scopes: `gmail.settings.basic` or `gmail.settings.sharing`.\n"]]