patch
https://tracking.hereapi.com/shipments/v4//
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
pendingsegments tocancelled - changes previous
ongoingsegment tocompleted(only for the immediate predecessor of this segment) - changes previous
ongoingsegment tocancelled(for segments that are not immediate predecessors of this segment) - previous segments in
cancelledorcompletedstates are not affected
- changes previous
pending||ongoing→cancelled- no changes for other segments
ongoing→completed- next segment with status
pendingis changed toongoing
- next segment with status
Note:
trackingId can be updated through this API call only if the segment is in pending state.
204Successful (no content)
The segment information was updated