Method: transitclass.patch
Aktualisiert die Mobilitätsklasse, auf die durch die angegebene Klassen-ID verwiesen wird. Diese Methode unterstützt die Patch-Semantik.
HTTP-Anfrage
PATCH https://walletobjects.googleapis.com/walletobjects/v1/transitClass/{resourceId}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
resourceId |
string
Die eindeutige Kennung für einen Kurs. Diese ID muss für alle Klassen eines Ausstellers eindeutig sein. Dieser Wert muss 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 TransitClass
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von TransitClass
.
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-07 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-11-07 (UTC)."],[[["Updates an existing transit class with patch semantics, allowing for partial modifications."],["Requires a unique class ID in the request URL following a specific format: issuer ID + your identifier."],["The request body and successful response body both contain a TransitClass object defining the class details."],["Authorization is necessary using the `wallet_object.issuer` scope."]]],["The core action is to update a transit class using a `PATCH` request to a specific URL, including a unique class ID in the path. The request body must contain a `TransitClass` instance, and the response will also return a `TransitClass` instance upon success. The class ID is structured as `issuer ID.identifier`, with specific character constraints. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]