Method: providers.deliveryVehicles.create
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
יצירה ומחזירה של DeliveryVehicle
חדש.
בקשת HTTP
POST https://fleetengine.googleapis.com/v1/{parent=providers/*}/deliveryVehicles
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. חייב להיות בפורמט providers/{provider} . הספק חייב להיות מזהה הפרויקט ב-Google Cloud. לדוגמה, sample-cloud-project .
|
פרמטרים של שאילתה
פרמטרים |
header |
object (DeliveryRequestHeader )
זה שינוי אופציונלי. כותרת הבקשה הרגילה של Delivery API.
|
deliveryVehicleId |
string
חובה. מזהה רכב המסירה חייב להיות ייחודי וכפוף להגבלות הבאות:
- חייבת להיות מחרוזת Unicode חוקית.
- מוגבלת לאורך של 64 תווים לכל היותר.
- מנורמלים בהתאם לטופס הנירמול של Unicode C.
- לא יכול להכיל אף אחד מתווי ASCII הבאים: '/', ':', '?', ' או '#'.
|
גוף הבקשה
גוף הבקשה מכיל מופע של DeliveryVehicle
.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע חדש של DeliveryVehicle
.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-31 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-31 (שעון UTC)."],[[["\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)."]]