Method: transitclass.update
Belirtilen sınıf kimliğinin referans verdiği toplu taşıma sınıfını günceller.
HTTP isteği
PUT https://walletobjects.googleapis.com/walletobjects/v1/transitClass/{resourceId}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
resourceId |
string
Sınıfın benzersiz tanımlayıcısı. Bu kimlik, bir verenin tüm sınıflarında benzersiz olmalıdır. Bu değer issuer ID biçiminde olmalıdır.identifier burada 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şaretlerini içermelidir.
|
İstek içeriği
İstek metni, TransitClass
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, TransitClass
öğ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-07 UTC.
[null,null,["Son güncelleme tarihi: 2024-11-07 UTC."],[[["Updates an existing transit class identified by its unique ID."],["The request must include the transit class data in the body and proper authorization."],["The unique identifier for a class follows the format: issuer ID.identifier, where the issuer ID is issued by Google and the identifier is chosen by you.."],["Successful requests will return the updated transit class data in the response body."]]],["The core action is updating a transit class using its unique ID. This is done via a PUT request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/transitClass/{resourceId}`. The `resourceId` is a path parameter with a defined format, comprised of an issuer ID and a user-chosen identifier. The request body must be a `TransitClass` instance, and a successful response will also return a `TransitClass` instance. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]