Method: networks.vehicles.create

  • 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.

Creates a Vehicle.

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.