Method: grants.patch
อัปเดตสิทธิ์เข้าถึงของผู้ใช้สำหรับแพ็กเกจที่ระบุ
คำขอ HTTP
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/{grant.name=developers/*/users/*/grants/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
grant.name |
string
ต้องระบุ ชื่อทรัพยากรของสิทธิ์นี้ตามรูปแบบ "developers/{developer}/users/{email}/grants/{packageName}" หากการให้สิทธิ์นี้สำหรับแอปฉบับร่าง ระบบจะใช้รหัสแอปในชื่อทรัพยากรนี้แทนชื่อแพ็กเกจ
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
updateMask |
string (FieldMask format)
ไม่บังคับ รายการช่องที่จะอัปเดต ซึ่งเป็นรายการชื่อฟิลด์ที่สมบูรณ์ในตัวเองที่คั่นด้วยคอมมา ตัวอย่าง: "user.displayName,photo"
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ Grant
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Grant
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidpublisher
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-17 UTC
[null,null,["อัปเดตล่าสุด 2024-12-17 UTC"],[[["Updates a user's access to a specific package within the Google Play Developer API."],["The request must specify the grant resource name using a specific pattern, which includes the developer ID, user email, and package name or app ID for draft apps."],["Optionally, a field mask can be provided to specify which fields of the grant should be updated."],["The request and response bodies both utilize the `Grant` object to represent the user's access permissions."],["Authorization requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope."]]],["The content describes how to update user access to a package via a `PATCH` HTTP request. The request URL structure follows gRPC Transcoding syntax and requires a `grant.name` path parameter representing the resource. An optional `updateMask` query parameter specifies fields to update. The request body must contain a `Grant` instance, and the successful response also returns a `Grant` instance. Authorization requires the `androidpublisher` OAuth scope.\n"]]