Method: networks.shipments.path.commit
Stay organized with collections
Save and categorize content based on your preferences.
Commits the path of a shipment, indicating that it cannot be changed in the future, even by the user, save for force majeure/act of God indicated by the vehicles.makeUnavailable, hubs.makeUnavailable, lines.makeUnavailable methods. This method is not used to tag a particular revision of a path.
HTTP request
POST https://middlemileoptimization.googleapis.com/v1/{name=networks/*/shipments/*}/path:commit
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. The name of the shipment whose path must be committed. Format: "networks/{network}/shipments/{shipment}"
|
Request body
The request body contains data with the following structure:
JSON representation |
{
// Union field path_to_commit can be only one of the following:
"completeShipmentPath": {
object (PathToCommit )
},
"segments": {
object (IncompletePathToCommit )
}
// End of list of possible types for union field path_to_commit .
} |
Fields |
Union field path_to_commit . The path or parts of the path that should be committed. path_to_commit can be only one of the following: |
completeShipmentPath |
object (PathToCommit )
The segments of a path from a source to a destination.
|
segments |
object (IncompletePathToCommit )
A subset of the segments of a path from a source to a destination.
|
Response body
If successful, the response body contains an instance of Path
.
PathToCommit
Full path being committed, from source to destination.
JSON representation |
{
"segments": [
{
object (PathSegment )
}
]
} |
Fields |
segments[] |
object (PathSegment )
Required. Segments must be in order, from a source to a destination.
|
IncompletePathToCommit
Part of path being committed, i.e. some segments between the source and the destination.
JSON representation |
{
"segments": [
{
object (PathSegment )
}
]
} |
Fields |
segments[] |
object (PathSegment )
Required. A subset of the segments of a path from a source to a destination.
|
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."],[[["Commits the shipment path, making it unchangeable except in cases of force majeure, using `vehicles.makeUnavailable`, `hubs.makeUnavailable`, or `lines.makeUnavailable` methods."],["This action is final and cannot be used to tag a specific path revision."],["The request requires specifying the shipment name and providing the complete or partial path to be committed."],["Successful commitment results in a response containing the committed path details."],["The path can be specified either as a complete path from source to destination using `PathToCommit` or as a subset of segments using `IncompletePathToCommit`."]]],["This describes committing a shipment's path via a `POST` request to `networks/*/shipments/*/path:commit`. Committing a path finalizes it, preventing future changes except for force majeure events. The request body defines the `path_to_commit`, which can be a `completeShipmentPath` (full path) or `segments` (partial path). Both options consist of ordered `segments` from source to destination. A successful request returns a `Path` object, and the path can no longer be modified.\n"]]