Method: users.settings.cse.identities.patch
Wiąże inną parę kluczy z istniejącą tożsamością szyfrowania po stronie klienta. Zaktualizowana para kluczy musi przejść weryfikację pod kątem zgodności z profilami certyfikatów S/MIME Google.
Żądanie HTTP
PATCH https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
userId |
string
Podstawowy adres e-mail osoby zgłaszającej prośbę. Aby wskazać uwierzytelnionego użytkownika, możesz użyć specjalnej wartości me .
|
emailAddress |
string
Adres e-mail tożsamości szyfrowania po stronie klienta do zaktualizowania.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu CseIdentity
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu CseIdentity
.
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 operation updates the key pair associated with an existing client-side encryption identity for a user in Gmail."],["The updated key pair must meet Google's S/MIME certificate profile requirements."],["You need to provide the user's email address and the email address of the client-side encryption identity to update."],["The request requires specific authorization scopes related to Gmail settings."],["A successful update returns the updated client-side encryption identity details."]]],["This describes how to update an existing client-side encryption identity with a new key pair via a `PATCH` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}`. The `userId` and `emailAddress` are specified as path parameters. The request body must contain a `CseIdentity` instance. A successful update returns a `CseIdentity` instance in the response. Authorization requires either the `gmail.settings.basic` or `gmail.settings.sharing` OAuth scope. The new key pair must align with Google's S/MIME certificate profiles.\n"]]