Updating a Delivery

IMPORTANT - You can only update a delivery on a draft job.

Once a draft job has been created, you may update any of it's deliveries using the PATCH /jobs/{job_id}/deliveries.

Currently, we only support single pickup jobs, therefore any updates to the pickup fields will update all other deliveries too.

Updating the Delivery Sequence

If the job that you're adding the delivery to has a fixed sequence and the update to the delivery changes the sequence_number then the overall sequence of the deliveries will be adjusted accordingly.

Below is a list of scenarios along with how the sequence will be adjusted:

ScenarioImpact on Sequence
Sequence number is updated to be greater than the current value.All deliveries with a sequence number greater than the original value and less than or equal to the new value will have their sequence numbers decreased by 1.
Sequence number is updated to be less than the current value.All deliveries with a sequence number less than the original value and greater than or equal to the new value of the updated delivery will have their sequence numbers increased by 1.