Method: networks.line.create
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://middlemileoptimization.googleapis.com/v1/{parent=networks/*}/line
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
.
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 2024-08-06 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 2024-08-06 UTC."],[[["Creates a new Line resource within a specified network using an HTTP POST request."],["The request must include the parent network and a unique line identifier."],["The request and response bodies utilize the `Line` object to define line properties."],["The URL structure follows gRPC Transcoding syntax for consistency."]]],["A `POST` request to `https://middlemileoptimization.googleapis.com/v1/{parent=networks/*}/line` creates a Line. The `parent` path parameter, formatted as \"networks/{network}\", is required, specifying where the Line will be created. The `lineId` query parameter is also required to identify the Line. The request body must contain a Line instance, and a newly created Line instance is returned in the response upon successful creation.\n"]]