Method: providers.trips.create
HTTP 要求
POST https://fleetengine.googleapis.com/v1/{parent=providers/*}/trips
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。格式須為 providers/{provider} 。提供者必須是服務帳戶 (發出此呼叫的服務帳戶) 所屬的 Google Cloud 專案專案 ID (例如 sample-cloud-project )。
|
查詢參數
參數 |
header |
object (RequestHeader )
標準 Fleet Engine 要求標頭。
|
tripId |
string
必要欄位。不重複的行程 ID。但須遵守下列限制:
|
回應主體
如果成功,回應主體會包含新建立的 Trip
例項。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-08 (世界標準時間)。
[null,null,["上次更新時間:2024-11-08 (世界標準時間)。"],[[["This endpoint enables the creation of a new trip within the Fleet Engine system, returning the trip details upon successful creation."],["The 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."],["The request body should contain a Trip object with relevant trip details as outlined in the provided documentation."],["A successful response will return the newly created Trip object, providing confirmation and details of the initiated trip."]]],[]]