Method: networks.vehicles.create
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://middlemileoptimization.googleapis.com/v1/{parent=networks/*}/vehicles
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The parent resource where this vehicle will be created. Format: "networks/{network}"
|
Query parameters
Parameters |
vehicleId |
string
Required. Identifier of the vehicle to create.
|
Request body
The request body contains an instance of Vehicle
.
Response body
If successful, the response body contains a newly created instance of Vehicle
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-14 UTC."],[[["Creates a new vehicle resource within a specified network using a POST request to the provided URL."],["Requires a network identifier (`parent`) as a path parameter and a unique vehicle identifier (`vehicleId`) as a query parameter."],["The request body must contain a Vehicle object defining the vehicle's properties, as detailed in the provided reference link."],["If successful, the response will contain the newly created Vehicle object with its assigned properties and identifiers."]]],["This outlines the creation of a vehicle resource via an HTTP POST request to a specific URL. The `parent` parameter, representing the network, is required in the URL path. A `vehicleId` is also mandatory and must be supplied as a query parameter. The request body holds the vehicle data, and a successful response returns the newly created `Vehicle` instance. The URL structure follows gRPC Transcoding conventions.\n"]]