Method: genericobject.patch
تعديل العنصر العام المُشار إليه بمعرّف العنصر المحدّد تتيح هذه الطريقة دلالات التصحيح.
طلب HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/genericObject/{resourceId}
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
resourceId |
string
المعرّف الفريد للعنصر ويجب أن يكون هذا المعرّف فريدًا في كل العناصر من جهة الإصدار. يجب أن تتّبع هذه القيمة التنسيق issuerID.identifier حيث يتم إصدار issuerID من قِبل Google ويتم اختيار identifier من قِبلك. لا يمكن أن يتضمّن المعرّف الفريد سوى أحرف أبجدية رقمية أو . أو _ أو - .
|
نص الطلب
يحتوي نص الطلب على مثال GenericObject
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال GenericObject
.
نطاقات الأذونات
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/wallet_object.issuer
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-04 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-04 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]