Method: flightobject.patch
מעדכן את אובייקט הטיסה שאליו מפנה מזהה האובייקט הנתון. השיטה הזו תומכת בסמנטיקה של תיקונים.
בקשת HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/flightObject/{resourceId}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
resourceId |
string
המזהה הייחודי של אובייקט. המזהה הזה חייב להיות ייחודי בכל האובייקטים של המנפיק. הערך צריך להיות בפורמט issuer ID.identifier, כאשר המזהה הראשון מונפק על ידי Google והשני נבחר על ידכם. המזהה הייחודי צריך לכלול רק תווים אלפאנומריים, נקודה (.), קו תחתון (_) או מקף (-).
|
גוף הבקשה
גוף הבקשה מכיל מופע של FlightObject
.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של FlightObject
.
היקפי ההרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-04 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-04 (שעון UTC)."],[[["This document details how to update a flight object using the Google Wallet API with patch semantics."],["The request must be a PATCH request to a specific URL containing the object's unique resource ID."],["The request body should contain the updated flight object data in JSON format, conforming to the FlightObject schema."],["A successful update returns the updated flight object in the response body."],["Users need to have the `wallet_object.issuer` OAuth scope to authorize this request."]]],["The core function updates a flight object using a PATCH request to the specified URL: `https://walletobjects.googleapis.com/walletobjects/v1/flightObject/{resourceId}`. The `resourceId` in the path is a unique identifier (issuer ID.identifier). The request body should contain a `FlightObject` instance. A successful operation returns a `FlightObject` in the response body. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]