Shipments
Updates a segment details
Updates details of a segment identified by the segmentId.
This is a partial update, meaning that only the provided fields will be updated.
Changing the status of a segment affects the statuses of other segments in the shipment. The following status changes are allowed:
- pending → ongoing
- changes previous pending segments to cancelled
- changes previous ongoing segment to completed (only for the immediate predecessor of this segment)
- changes previous ongoing segment to cancelled (for segments that are not immediate predecessors of this segment)
- previous segments in cancelled or completed states are not affected
- pending || ongoing → cancelled
- no changes for other segments
- ongoing → completed
- next segment with status pending is changed to ongoing
Note: trackingId can be updated through this API call only if the segment is in pending state.
patch/shipments/v4/{shipmentId}/{segmentId}
Request body
Example request
{
"description": "From factory to port",
"name": "Truck transport",
"trackingId": "HERE-540bb24b-0d57-4f8c-aeaf-6c91cd0aff8d",
"transportMode": "truck"
}Response
Successful (no content)
The segment information was updated