# PathSegment

Represents a part of a path, either sent by the API customer to the API server (e.g., state change) or by the API server to the API customer (e.g., routing a shipment).

| JSON representation |
|---|
| ``` { "sourceHub": string, "destinationHub": string, "line": string, "lineRotation": string, "vehicle": string } ``` |

| Fields ||
|---|---|
| `sourceHub` | `string` Required. Source of the segment. |
| `destinationHub` | `string` Required. Destination of the segment. |
| `line` | `string` Required. Line being followed for this segment. |
| `lineRotation` | `string` Required. Rotation being followed for this segment. |
| `vehicle` | `string` Required. Vehicle followed by this segment. |