Method: grants.patch
उपयोगकर्ता के लिए, दिए गए पैकेज का ऐक्सेस अपडेट करता है.
एचटीटीपी अनुरोध
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/{grant.name=developers/*/users/*/grants/*}
यूआरएल में 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
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]