Method: users.settings.cse.identities.patch
Liên kết một cặp khoá khác với thông tin nhận dạng hiện có trong tính năng mã hoá phía máy khách. Cặp khoá đã cập nhật phải xác thực theo hồ sơ chứng chỉ S/MIME của Google.
Yêu cầu HTTP
PATCH https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Các tham số |
userId |
string
Địa chỉ email chính của người yêu cầu. Để cho biết người dùng đã xác thực, bạn có thể sử dụng giá trị đặc biệt me .
|
emailAddress |
string
Địa chỉ email của thông tin nhận dạng mã hoá phía máy khách cần cập nhật.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của CseIdentity
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của CseIdentity
.
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau:
https://www.googleapis.com/auth/gmail.settings.basic
https://www.googleapis.com/auth/gmail.settings.sharing
Để biết thêm thông tin, hãy xem Hướng dẫn uỷ quyền.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-09-05 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]