Method: loyaltyobject.update
Aktualisiert das Treueobjekt, auf das von der angegebenen Objekt-ID verwiesen wird.
HTTP-Anfrage
PUT https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{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 muss das Format issuer ID haben.identifier, wobei Ersteres von Google ausgestellt und Letzteres von Ihnen ausgewählt wird. Die eindeutige Kennung darf nur alphanumerische Zeichen sowie „.“, „_“ oder „-“ enthalten.
|
Anfragetext
Der Anfragetext enthält eine Instanz von LoyaltyObject
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von LoyaltyObject
.
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: 2025-03-13 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-03-13 (UTC)."],[[["This document explains how to update a loyalty object using the Google Wallet API."],["You'll need to use a `PUT` request to the specified URL, including the object's unique identifier."],["The request body should contain the updated loyalty object data in JSON format according to the `LoyaltyObject` schema."],["A successful response will return the updated `LoyaltyObject`."],["You must have the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope to authorize this request."]]],["This describes how to update a loyalty object using a PUT request. The request URL is `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{resourceId}`, where `resourceId` uniquely identifies the object. The request body must contain a `LoyaltyObject` instance. The response body will also be a `LoyaltyObject` upon success. This action requires `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization. The `resourceId` should follow the format \u003cvar\u003eissuer ID\u003c/var\u003e.\u003cvar\u003eidentifier\u003c/var\u003e.\n"]]