Method: flightobject.patch
Aktualisiert das Flugobjekt, auf das durch die angegebene Objekt-ID verwiesen wird. Diese Methode unterstützt die Patch-Semantik.
HTTP-Anfrage
PATCH https://walletobjects.googleapis.com/walletobjects/v1/flightObject/{resourceId}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
resourceId |
string
Die eindeutige Kennung für ein Objekt. Diese ID muss für alle Objekte eines Ausstellers eindeutig sein. Dieser Wert sollte das Format issuer ID haben.identifier, wobei von Google ausgegeben und von dir ausgewählt wird. Die eindeutige Kennung darf nur alphanumerische Zeichen, „.“ (Punkt), „_“ (Unterstrich) oder „-“ (Bindestriche) enthalten.
|
Anfragetext
Der Anfragetext enthält eine Instanz von FlightObject
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von FlightObject
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/wallet_object.issuer
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-11-04 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]