Replace a shipment's leg plan. A declarative, idempotent full-replace of the complete set of legs the shipment should have. Send the entire desired plan; the server reconciles it against the current legs, preserving execution facts (statuses, logged times) that a plan cannot express. Optimistic concurrency is enforced via expectedShipmentUpdatedAtMs (the shipment's millisecond-resolution updatedAtMilliseconds): if the shipment changed since you read it, the request is rejected with 409.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400Bad request - the plan violates a structural integrity rule (e.g. broken adjacency, an uncovered load, or an unknown shipment load reference).
401Unauthorized - invalid or missing API key.
403Forbidden - the API key may not modify this shipment's legs.
404Shipment not found.
409Conflict - the shipment changed since it was read (optimistic-lock mismatch on expectedShipmentUpdatedAtMs).
503Service unavailable - applying the plan required re-routing a tour and the routing engine was momentarily unavailable. The request was not applied; retry.
