Method: providers.trips.create
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Membuat perjalanan di Fleet Engine dan menampilkan perjalanan baru.
Permintaan HTTP
POST https://fleetengine.googleapis.com/v1/{parent=providers/*}/trips
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
parent |
string
Wajib. Harus dalam format providers/{provider} . Penyedia harus berupa Project ID (misalnya, sample-cloud-project ) Project Google Cloud tempat akun layanan yang melakukan panggilan ini menjadi anggota.
|
Parameter kueri
Parameter |
header |
object (RequestHeader )
Header permintaan Fleet Engine standar.
|
tripId |
string
Wajib. ID Perjalanan Unik. Tunduk kepada batasan berikut:
- Harus berupa string Unicode yang valid.
- Dibatasi hingga panjang maksimum 64 karakter.
- Dinormalkan menurut Formulir Normalisasi Unicode C.
- Tidak boleh berisi karakter ASCII berikut: '/', ':', '?', ',', atau '#'.
|
Isi permintaan
Isi permintaan memuat instance Trip
.
Isi respons
Jika berhasil, isi respons memuat instance Trip
yang baru dibuat.
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 enables the creation of a new trip within the Fleet Engine system, returning the trip details upon successful creation.\u003c/p\u003e\n"],["\u003cp\u003eThe request must be a POST request to the specified URL, including necessary path and query parameters such as provider ID and a unique trip ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain a Trip object with relevant trip details as outlined in the provided documentation.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will return the newly created Trip object, providing confirmation and details of the initiated trip.\u003c/p\u003e\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\nCreates a trip in the Fleet Engine and returns the new trip.\n\nHTTP request\n\n`POST https://fleetengine.googleapis.com/v1/{parent=providers/*}/trips`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. Must be in the format `providers/{provider}`. The provider must be the Project ID (for example, `sample-cloud-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| `tripId` | `string` Required. Unique Trip ID. Subject to the following restrictions: - Must be a valid Unicode string. - Limited to a maximum length of 64 characters. - Normalized according to [Unicode Normalization Form C](http://www.unicode.org/reports/tr15/). - May not contain any of the following ASCII characters: '/', ':', '?', ',', or '#'. |\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 a newly created instance of [Trip](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips#Trip)."]]