Method: loyaltyobject.insert
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
दिए गए आईडी और प्रॉपर्टी के साथ लॉयल्टी ऑब्जेक्ट डालता है.
एचटीटीपी अनुरोध
POST https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में LoyaltyObject
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब होने पर, जवाब के मुख्य हिस्से में LoyaltyObject
का नया इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/wallet_object.issuer
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["Inserts a loyalty object with the given ID and properties using a POST request to the specified URL."],["The request body should contain a LoyaltyObject as defined in the provided documentation link."],["A successful response will return the newly created LoyaltyObject."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope."]]],["A loyalty object is inserted using a POST request to `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject`. The request body requires a `LoyaltyObject` instance. Upon success, a new `LoyaltyObject` instance is returned in the response body. This operation uses gRPC Transcoding. The `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope is required for authorization.\n"]]