patch
https://tracking.hereapi.com/shipments/v4/
Updates details of a shipment identified by the shipmentId.
This is a partial update, meaning that only the provided fields will be updated,
except when updating segments, the whole segments will be replaced fully.
Changing the status of the shipment affects the statuses of the segments. The following status changes are allowed:
pending→ongoing- changes the status of the first segment to
ongoing
- changes the status of the first segment to
pending→cancelled- changes the status of
ongoingand allpendingsegments tocancelled
- changes the status of
ongoing→cancelled- cancels the current
ongoingsegment and all the succeeding segments
- cancels the current
ongoing→completed- completes the current
ongoingsegment and cancels all the succeeding segments
- completes the current
Note:
segments and autoStart can be updated via this API call only if the shipment is in
pending state.
The "Tracker only" variant of the request updates the given tracking device
to all ongoing and pending state segments of the shipment, so it allows
to make tracker association both for ongoing and pending state shipments.
204Successful (no content)
The shipment information was updated