Method: offerobject.update
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Actualiza el objeto de oferta al que hace referencia el ID de objeto determinado.
Solicitud HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}
La URL usa la sintaxis de la transcodificación gRPC.
Parámetros de ruta de acceso
Parámetros |
resourceId |
string
El identificador único de un objeto. Este ID debe ser único en todos los objetos de una entidad emisora. Este valor debe seguir el formato issuer ID.identifier donde la primera es emitida por Google y la última es la tuya. Tu identificador único solo debe incluir caracteres alfanuméricos, “.”, “_” o “-”.
|
Cuerpo de la solicitud
El cuerpo de la solicitud incluye una instancia de OfferObject
.
Cuerpo de la respuesta
Si se ejecuta de forma correcta, el cuerpo de la respuesta contiene una instancia de OfferObject
.
Permisos de autorización
Requiere el siguiente alcance de OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-25 (UTC)
[null,null,["Última actualización: 2025-07-25 (UTC)"],[[["\u003cp\u003eUpdates an existing offer object using its unique identifier.\u003c/p\u003e\n"],["\u003cp\u003eThe request must use the \u003ccode\u003ePUT\u003c/code\u003e method and provide the offer object's details in the request body.\u003c/p\u003e\n"],["\u003cp\u003eThe offer object's ID should follow the format: \u003cvar translate=no\u003eissuer ID\u003c/var\u003e.\u003cvar translate=no\u003eidentifier\u003c/var\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests will return the updated offer object in the response body.\u003c/p\u003e\n"],["\u003cp\u003eRequires \u003ccode\u003ehttps://www.googleapis.com/auth/wallet_object.issuer\u003c/code\u003e authorization scope.\u003c/p\u003e\n"]]],["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"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nUpdates the offer object referenced by the given object ID.\n\nHTTP request\n\n`PUT https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `resourceId` | `string` The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format \u003cvar translate=\"no\"\u003eissuer ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003eidentifier\u003c/var\u003e where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |\n\nRequest body\n\nThe request body contains an instance of [OfferObject](/wallet/reference/rest/v1/offerobject#OfferObject).\n\nResponse body\n\nIf successful, the response body contains an instance of [OfferObject](/wallet/reference/rest/v1/offerobject#OfferObject).\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/wallet_object.issuer`"]]