Method: offerobject.update
Aktualisiert das Angebotsobjekt, auf das die angegebene Objekt-ID verweist.
HTTP-Anfrage
PUT https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{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 OfferObject
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von OfferObject
.
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 offer object using its unique identifier."],["The request must use the `PUT` method and provide the offer object's details in the request body."],["The offer object's ID should follow the format: \u003cvar translate=\"no\"\u003eissuer ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003eidentifier\u003c/var\u003e."],["Successful requests will return the updated offer object in the response body."],["Requires `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope."]]],["This describes how to update an offer object using a PUT request. The request URL is structured using gRPC Transcoding, including a `resourceId` path parameter, a unique identifier composed of an issuer ID and a custom identifier. The request body contains an `OfferObject` instance. A successful response returns an updated `OfferObject`. The operation requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization.\n"]]