Method: transitclass.update
Memperbarui class transportasi umum yang dirujuk oleh ID class yang diberikan.
Permintaan HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/transitClass/{resourceId}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
resourceId |
string
ID unik untuk class. ID ini harus unik di semua class 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 TransitClass
.
Isi respons
Jika berhasil, isi respons memuat instance TransitClass
.
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."],[[["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"]]