Method: users.settings.cse.identities.patch
Связывает другую пару ключей с существующим идентификатором шифрования на стороне клиента. Обновленная пара ключей должна быть проверена на соответствие профилям сертификатов S/MIME Google.
HTTP-запрос
PATCH https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
userId | string Основной адрес электронной почты отправителя запроса. Чтобы указать аутентифицированного пользователя, вы можете использовать специальное значение me . |
emailAddress | string Адрес электронной почты идентификатора шифрования на стороне клиента, который необходимо обновить. |
Тело запроса
Тело запроса содержит экземпляр CseIdentity
.
Тело ответа
В случае успеха тело ответа содержит экземпляр CseIdentity
.
Области авторизации
Требуется одна из следующих областей 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 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"]]