Method: networks.lines.create

  • This API endpoint creates a new Line resource within a specified network.

  • The request is a POST method to the URL https://middlemileoptimization.googleapis.com/v1/{parent=networks/*}/lines, utilizing gRPC Transcoding syntax.

  • The parent path parameter, representing the network, is a required string formatted as "networks/{network}".

  • The lineId query parameter is a required string for identifying the Line being created.

  • The request body must contain the details of the Line to be created, and a successful request returns the newly created Line in the response body.

Creates a Line.

HTTP request

POST https://middlemileoptimization.googleapis.com/v1/{parent=networks/*}/lines

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource where this line will be created. Format: "networks/{network}"

Query parameters

Parameters
lineId

string

Required. Identifier of the line to create.

Request body

The request body contains an instance of Line.

Response body

If successful, the response body contains a newly created instance of Line.