Method: users.settings.sendAs.patch
Zastosowanie poprawki dla określonego aliasu „wyślij jako”.
Żądanie HTTP
PATCH https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
userId |
string
Adres e-mail użytkownika. Specjalna wartość „ja” może służyć do wskazania uwierzytelnionego użytkownika.
|
sendAsEmail |
string
Alias „wyślij jako” do zaktualizowania.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu SendAs
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu SendAs
.
Zakresy autoryzacji
Wymaga jednego z tych zakresów OAuth:
https://www.googleapis.com/auth/gmail.settings.basic
https://www.googleapis.com/auth/gmail.settings.sharing
Więcej informacji znajdziesz w przewodniku po autoryzacji.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-05 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]