Method: providers.trips.create
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Fleet Engine でルートを作成し、新しいルートを返します。
HTTP リクエスト
POST https://fleetengine.googleapis.com/v1/{parent=providers/*}/trips
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。providers/{provider} の形式で指定してください。プロバイダは、この呼び出しを行うサービス アカウントがメンバーになっている Google Cloud プロジェクトのプロジェクト ID(sample-cloud-project など)にする必要があります。
|
クエリ パラメータ
パラメータ |
header |
object (RequestHeader )
標準の Fleet Engine リクエスト ヘッダー。
|
tripId |
string
必須。一意のルート ID。以下の制限が適用されます。
- 有効な Unicode 文字列を指定する必要があります。
- 最大文字数は 64 文字です。
- Unicode 正規化フォーム C に従って正規化されます。
- ASCII 文字「/」、「:」、「?」、「」、「#」を含めることはできません。
|
リクエスト本文
リクエストの本文には Trip
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された Trip
のインスタンスが含まれます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 UTC。
[null,null,["最終更新日 2025-08-31 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,["# Method: providers.trips.create\n\n- [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\n### HTTP 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\n### Path 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\n### Query 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\n### Request body\n\nThe request body contains an instance of [Trip](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips#Trip).\n\n### Response 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)."]]