Method: genericobject.patch
อัปเดตออบเจ็กต์ทั่วไปที่อ้างอิงตามรหัสออบเจ็กต์ที่กำหนด เมธอดนี้รองรับความหมายของแพตช์
คำขอ HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/genericObject/{resourceId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับออบเจ็กต์ รหัสนี้ต้องไม่ซ้ำกันในทุกออบเจ็กต์จากผู้ออกบัตร ค่านี้ต้องเป็นไปตามรูปแบบ issuerID.identifier ซึ่ง Google ออกค่า issuerID และคุณเป็นผู้เลือก identifier ตัวระบุที่ไม่ซ้ำกันต้องมีเฉพาะอักขระที่เป็นตัวอักษรและตัวเลขคละกัน . , _ หรือ -
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ GenericObject
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ GenericObject
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/wallet_object.issuer
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 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"]]