Reschedule a BOOKED appointment
POST/appointments/:appointmentId/reschedules
Moves the window of a BOOKED appointment and optionally its door (doorCode). The new door and window are checked like a
booking, ignoring the appointment's own current window. Requires an Idempotency-Key;
If-Match with the ETag is honoured (412 on mismatch). Publishes DockAppointmentRescheduled.
Request
Responses
- 200
- 400
- 404
- 409
- 412
- 422
- 500
The appointment is rescheduled.
Response Headers
true when this response is the stored answer of an earlier request with the same Idempotency-Key and the same method, path and body (the handler did not run again). Absent on the first execution.
The weak entity tag of the appointment or carrier, W/"<version>".
Malformed JSON body, an unknown field, an invalid path, query or header parameter, or a NUL byte in a body.
No appointment, door, closure or carrier has this id, or the path holds a NUL byte.
The appointment or carrier is in the wrong state for the command, the door is booked in an overlapping window, a closure collides, another request changed the aggregate first, or the Idempotency-Key was already used with a different request (idempotency-key-reused).
The If-Match version is not the current version of the appointment or carrier.
The request is well formed JSON but a value-object or reference rule refuses it (invalid door code, carrier or window, invalid SCAC, USDOT, MC, carrier name or suspension reason, window in the past, unknown door, door flow mismatch, unknown ASN, missing outbound reference, invalid operating hours or settings).
Unexpected server error.