Method: loyaltyclass.patch
Aktualisiert die Treuepunkteklasse, 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/loyaltyClass/{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 LoyaltyClass
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von LoyaltyClass
.
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 loyalty class using patch semantics, allowing for partial modifications."],["Requires a unique loyalty class ID in the request URL following a specific format."],["The request body should contain the updated LoyaltyClass object details."],["A successful response will return the updated LoyaltyClass object."],["Requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["The content details updating a loyalty class via a `PATCH` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}`. The `resourceId` path parameter uniquely identifies the class, following the format `issuer ID.identifier`. The request body must be an instance of `LoyaltyClass`, and upon success, the response body will also contain a `LoyaltyClass` instance. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]