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
โปรดดูข้อมูลเพิ่มเติมที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers 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"]]