Method: providers.trips.update
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memperbarui data perjalanan.
Permintaan HTTP
PUT https://fleetengine.googleapis.com/v1/{name=providers/*/trips/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Wajib. Harus dalam format providers/{provider}/trips/{trip} . Penyedia harus berupa Project ID (misalnya, sample-consumer-project ) Project Google Cloud tempat akun layanan yang melakukan panggilan ini menjadi anggota.
|
Parameter kueri
Parameter |
header |
object (RequestHeader )
Header permintaan Fleet Engine standar.
|
updateMask |
string (FieldMask format)
Wajib. Mask kolom yang menunjukkan kolom mana di Perjalanan yang akan diperbarui. updateMask harus berisi setidaknya satu kolom. Ini adalah daftar yang dipisahkan koma yang berisi nama kolom yang sepenuhnya memenuhi syarat. Contoh: "user.displayName,photo" .
|
Isi permintaan
Isi permintaan memuat instance Trip
.
Isi respons
Jika berhasil, isi respons memuat instance Trip
.
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 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[[["\u003cp\u003eThis endpoint updates trip data using an HTTP PUT request to the specified URL.\u003c/p\u003e\n"],["\u003cp\u003eThe request must include path and query parameters, including a required \u003ccode\u003ename\u003c/code\u003e and \u003ccode\u003eupdateMask\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain the updated trip data in the \u003ccode\u003eTrip\u003c/code\u003e format, as defined in the provided link.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will also contain the updated \u003ccode\u003eTrip\u003c/code\u003e data in the response body.\u003c/p\u003e\n"],["\u003cp\u003eThe provider in the path parameter must be the Project ID of the Google Cloud Project of which the service account making the call is a member.\u003c/p\u003e\n"]]],["This describes updating trip data using a `PUT` request to a specific URL, formatted as `providers/*/trips/*`. The request requires a trip `name` as a path parameter. Mandatory query parameters include a request `header` and an `updateMask` to specify fields for modification. The request body contains the `Trip` instance to be updated and the response body returns a `Trip` object. The format of the trip path is specified, in addition to examples for `updateMask`.\n"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n\nUpdates trip data.\n\nHTTP request\n\n`PUT https://fleetengine.googleapis.com/v1/{name=providers/*/trips/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. Must be in the format `providers/{provider}/trips/{trip}`. The provider must be the Project ID (for example, `sample-consumer-project`) of the Google Cloud Project of which the service account making this call is a member. |\n\nQuery parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `header` | `object (`[RequestHeader](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/RequestHeader)`)` The standard Fleet Engine request header. |\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Required. The field mask indicating which fields in Trip to update. The `updateMask` must contain at least one field. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n\nRequest body\n\nThe request body contains an instance of [Trip](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips#Trip).\n\nResponse body\n\nIf successful, the response body contains an instance of [Trip](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips#Trip)."]]