Method: flightclass.update
הפונקציה מעדכנת את סוג הטיסה שמשויך למזהה הסוג הנתון.
בקשת HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
resourceId |
string
המזהה הייחודי של הכיתה. המזהה הזה חייב להיות ייחודי בכל המחלקות של המנפיק. הערך צריך להיות בפורמט issuer ID.identifier, כאשר המזהה הראשון מונפק על ידי Google והשני נבחר על ידכם. המזהה הייחודי יכול לכלול רק תווים אלפאנומריים, '.', '_' או '-'.
|
גוף הבקשה
גוף הבקשה מכיל מופע של FlightClass
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של FlightClass
.
היקפי הרשאה
נדרש היקף ההרשאות הבא של 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)."],[[["Updates an existing flight class identified by its unique resource ID."],["The request must be a PUT request sent to the specified URL with the class ID in the path."],["The request body should contain the updated flight class details, and the response will contain the updated class if successful."],["Requires authorization with the `wallet_object.issuer` scope."]]],["The core action is updating a flight class using its unique class ID. This is done via a `PUT` HTTP request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}`. The `resourceId` parameter, formatted as `\u003cissuer ID\u003e.\u003cidentifier\u003e`, identifies the flight class. The request body contains the new `FlightClass` data, and a successful response returns the updated `FlightClass`. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]