Method: giftcardobject.update
Aktualisiert das Geschenkkartenobjekt, auf das von der angegebenen Objekt-ID verwiesen wird.
HTTP-Anfrage
PUT https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{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 GiftCardObject
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von GiftCardObject
.
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)."],[[["Updates a specific gift card object using its unique identifier."],["Requires a `PUT` request to the specified URL with the updated gift card object data in the request body."],["The URL includes a path parameter `resourceId` representing the gift card object's unique identifier."],["A successful request returns the updated gift card object in the response body."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["This describes how to update a gift card object using a PUT request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}`. The `resourceId` in the URL's path is a unique identifier consisting of an issuer ID and a user-chosen identifier. The request body requires a `GiftCardObject` instance. Upon successful execution, the response body will also return a `GiftCardObject`. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]