Method: flightobject.patch
Belirtilen nesne kimliğinin referans verdiği uçuş nesnesini günceller. Bu yöntem yama anlamını destekler.
HTTP isteği
PATCH https://walletobjects.googleapis.com/walletobjects/v1/flightObject/{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 arasında benzersiz olmalıdır. Bu değer issuer ID biçiminde olmalıdır.identifier. Bunlardan ilki Google tarafından verilir, ikincisi ise sizin tarafınızdan seçilir. Benzersiz tanımlayıcınız yalnızca alfanümerik karakterler, ".", "_" veya "-" içermelidir.
|
İstek içeriği
İstek metni, FlightObject
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, FlightObject
öğ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: 2024-11-04 UTC.
[null,null,["Son güncelleme tarihi: 2024-11-04 UTC."],[[["This document details how to update a flight object using the Google Wallet API with patch semantics."],["The request must be a PATCH request to a specific URL containing the object's unique resource ID."],["The request body should contain the updated flight object data in JSON format, conforming to the FlightObject schema."],["A successful update returns the updated flight object in the response body."],["Users need to have the `wallet_object.issuer` OAuth scope to authorize this request."]]],["The core function updates a flight object using a PATCH request to the specified URL: `https://walletobjects.googleapis.com/walletobjects/v1/flightObject/{resourceId}`. The `resourceId` in the path is a unique identifier (issuer ID.identifier). The request body should contain a `FlightObject` instance. A successful operation returns a `FlightObject` in the response body. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]