Method: genericobject.patch
दिए गए ऑब्जेक्ट आईडी से रेफ़र किए गए सामान्य ऑब्जेक्ट को अपडेट करता है. यह तरीका पैच सिमैंटिक के साथ काम करता है.
एचटीटीपी अनुरोध
PATCH https://walletobjects.googleapis.com/walletobjects/v1/genericObject/{resourceId}
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
resourceId |
string
किसी ऑब्जेक्ट के लिए यूनीक आइडेंटिफ़ायर. यह आईडी, जारी करने वाले के सभी ऑब्जेक्ट के लिए यूनीक होना चाहिए. यह वैल्यू, issuerID.identifier फ़ॉर्मैट के मुताबिक होनी चाहिए, जहां Google ने issuerID जारी किया है और identifier को आपने चुना है. यूनीक आइडेंटिफ़ायर में सिर्फ़ अक्षर और अंक, . , _ या - शामिल किए जा सकते हैं.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में GenericObject
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में GenericObject
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/wallet_object.issuer
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-03-13 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-03-13 (UTC) को अपडेट किया गया."],[[["This document details how to update a generic object using the Google Wallet Objects API with patch semantics."],["The request should be a `PATCH` request to the provided URL with the object's resource ID."],["The request body and successful response body both contain a `GenericObject`."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope."]]],["This describes how to update a generic object using a PATCH request. The request URL is `https://walletobjects.googleapis.com/walletobjects/v1/genericObject/{resourceId}`, with `resourceId` being the unique object identifier in the format `issuerID.identifier`. The request body, an instance of `GenericObject`, is sent to update the object. A successful operation returns the updated `GenericObject` in the response body. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]