Method: providers.deliveryVehicles.create
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
POST https://fleetengine.googleapis.com/v1/{parent=providers/*}/deliveryVehicles
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
必需。必须采用 providers/{provider} 格式。提供方必须是 Google Cloud 项目 ID。例如 sample-cloud-project 。
|
查询参数
参数 |
header |
object (DeliveryRequestHeader )
可选。标准 Delivery API 请求标头。
|
deliveryVehicleId |
string
必需。送货车辆 ID 必须是唯一的,并受以下限制的约束:
- 必须是有效的 Unicode 字符串。
- 长度上限为 64 个字符。
- 根据 Unicode 标准化形式 C 进行标准化。
- 不得包含以下任何 ASCII 字符:“/”“:”“?”“,”或“#”。
|
请求正文
请求正文包含一个 DeliveryVehicle
实例。
响应正文
如果成功,响应正文将包含一个新创建的 DeliveryVehicle
实例。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eThis document explains how to create a new \u003ccode\u003eDeliveryVehicle\u003c/code\u003e using a \u003ccode\u003ePOST\u003c/code\u003e request to the Fleet Engine API.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the provider in the path and includes optional query parameters for request headers and a user-defined vehicle ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain a \u003ccode\u003eDeliveryVehicle\u003c/code\u003e object, as detailed in the provided link.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will return the newly created \u003ccode\u003eDeliveryVehicle\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Method: providers.deliveryVehicles.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 and returns a new `DeliveryVehicle`.\n\n### HTTP request\n\n`POST https://fleetengine.googleapis.com/v1/{parent=providers/*}/deliveryVehicles`\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 Google Cloud Project ID. For example, `sample-cloud-project`. |\n\n### Query parameters\n\n| Parameters ||\n|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `header` | `object (`[DeliveryRequestHeader](/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/DeliveryRequestHeader)`)` Optional. The standard Delivery API request header. |\n| `deliveryVehicleId` | `string` Required. The Delivery Vehicle ID must be unique and 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 [DeliveryVehicle](/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/providers.deliveryVehicles#DeliveryVehicle).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [DeliveryVehicle](/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/providers.deliveryVehicles#DeliveryVehicle)."]]