Method: loyaltyobject.patch
Memperbarui objek loyalitas yang dirujuk oleh ID objek yang diberikan. Metode ini mendukung semantik patch.
Permintaan HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{resourceId}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
resourceId |
string
ID unik untuk objek. ID ini harus unik di semua objek dari penerbit. Nilai ini harus mengikuti format issuer ID.identifier dengan yang pertama diterbitkan oleh Google dan yang kedua dipilih oleh Anda. ID unik Anda hanya boleh menyertakan karakter alfanumerik, '.', '_', atau '-'.
|
Isi permintaan
Isi permintaan memuat instance LoyaltyObject
.
Isi respons
Jika berhasil, isi respons memuat instance LoyaltyObject
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/wallet_object.issuer
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-07 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-07 UTC."],[[["This method updates an existing loyalty object using patch semantics and the object's unique identifier."],["The request body and successful response body both contain a LoyaltyObject."],["Requires `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope for access."],["Object IDs must follow a specific format of \u003cvar translate=\"no\"\u003eissuer ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003eidentifier\u003c/var\u003e with alphanumeric characters, '.', '_', or '-'."],["Uses gRPC Transcoding syntax in the request URL."]]],["The content details updating a loyalty object via a PATCH request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{resourceId}`. The `resourceId` parameter in the path uniquely identifies the object. The request body is a `LoyaltyObject` instance, and a successful response returns an updated `LoyaltyObject`. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The object ID format is `issuer ID.identifier` using alphanumeric characters, '.', '_', or '-'.\n"]]