Method: genericobject.patch
Belirtilen nesne kimliğinin başvurduğu genel nesneyi günceller. Bu yöntem yama semantiğini destekler.
HTTP isteği
PATCH https://walletobjects.googleapis.com/walletobjects/v1/genericObject/{resourceId}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
resourceId |
string
Bir nesnenin benzersiz tanımlayıcısıdır. Bu kimlik, bir verenin tüm nesneleri genelinde benzersiz olmalıdır. Bu değerin issuerID.identifier biçimine uygun olması gerekir. Burada issuerID Google tarafından verilir ve identifier sizin tarafınızdan seçilir. Benzersiz tanımlayıcı yalnızca alfanümerik karakterler, . , _ veya - içerebilir.
|
İstek içeriği
İstek metni, GenericObject
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, GenericObject
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/wallet_object.issuer
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-03-13 UTC.
[null,null,["Son güncelleme tarihi: 2025-03-13 UTC."],[[["This document details how to update a generic object using the Google Wallet Objects API with patch semantics."],["The request should be a `PATCH` request to the provided URL with the object's resource ID."],["The request body and successful response body both contain a `GenericObject`."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope."]]],["This describes how to update a generic object using a PATCH request. The request URL is `https://walletobjects.googleapis.com/walletobjects/v1/genericObject/{resourceId}`, with `resourceId` being the unique object identifier in the format `issuerID.identifier`. The request body, an instance of `GenericObject`, is sent to update the object. A successful operation returns the updated `GenericObject` in the response body. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]