Method: loyaltyclass.patch
दिए गए क्लास आईडी से रेफ़र की गई लॉयल्टी क्लास को अपडेट करता है. यह तरीका, पैच सिमेंटिक्स के साथ काम करता है.
एचटीटीपी अनुरोध
PATCH https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
resourceId |
string
क्लास के लिए यूनीक आइडेंटिफ़ायर. यह आईडी, जारी करने वाले बैंक की सभी क्लास के लिए यूनीक होना चाहिए. यह वैल्यू issuer ID फ़ॉर्मैट में होनी चाहिए.identifier, जहां पहला कोड Google जारी करता है और दूसरा कोड आप चुनते हैं. आपके यूनीक आइडेंटिफ़ायर में सिर्फ़ अक्षर और अंक, '.', '_' या '-' होने चाहिए.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में LoyaltyClass
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में LoyaltyClass
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/wallet_object.issuer
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-07 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-07 (UTC) को अपडेट किया गया."],[[["Updates an existing loyalty class using patch semantics, allowing for partial modifications."],["Requires a unique loyalty class ID in the request URL following a specific format."],["The request body should contain the updated LoyaltyClass object details."],["A successful response will return the updated LoyaltyClass object."],["Requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["The content details updating a loyalty class via a `PATCH` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}`. The `resourceId` path parameter uniquely identifies the class, following the format `issuer ID.identifier`. The request body must be an instance of `LoyaltyClass`, and upon success, the response body will also contain a `LoyaltyClass` instance. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]