Dispatch a wave (DispatchWave)
POST/waves/:waveId/dispatches
INDUCTION_CLOSED to DISPATCHED. No event is published for the wave itself. Packages inducted in the wave that no route holds are re-inducted onto the next wave (Gap Register G17 mechanism). A wave with no route left to run completes at once (policy CompleteWaveOnLastRoute), so the response may show COMPLETED.
Request
Responses
- 200
- 400
- 404
- 409
- 422
- 500
Wave dispatched.
Response Headers
Present, with the value true, only when the answer is a replay of the stored first answer.
The request is malformed at the HTTP level. Problem types idempotency-key-required (no Idempotency-Key header), idempotency-key-invalid (not 1 to 128 printable ASCII characters), invalid-limit, invalid-cursor, unknown-query-parameter. invalid-limit is a limit outside 1 to 500, empty or repeated; invalid-cursor a cursor that is not a page token or is repeated.
The wave, route, partner or (for an attempt) the package on the route does not exist, or the path matches no route or holds a NUL character. Problem types not-found, package-not-on-route, resource-not-found.
Response Headers
Present, with the value true, only when the answer is a replay of the stored first answer.
Conflict with the aggregate's state or capacity. Problem types: illegal-transition, concurrent-update, route-over-capacity, route-not-started, already-delivered, attempt-already-recorded, package-not-inducted, package-already-routed, stop-key-mismatch, partner-inactive, partner-station-mismatch, route-incomplete. idempotency-key-reused (the Idempotency-Key was already used with a different method, path or body). ErrWaveFull (wave-full), ErrInductionClosed (induction-closed) and ErrAlreadyInducted (already-inducted) are raised only by policy-driven induction, which has no route.
Response Headers
Present, with the value true, only when the answer is a replay of the stored first answer.
Validation failed. Problem types: validation-failed (body that is not valid JSON for the operation, with an unknown field, empty, with trailing data or over 64 KiB; a NUL character in the query or body; a missing or malformed query filter; a value-object rule), invalid-wave-times (ErrInvalidWaveTimes), invalid-van-capacity (ErrInvalidVanCapacity), unknown-station (ErrUnknownStation).
Response Headers
Present, with the value true, only when the answer is a replay of the stored first answer.
Unexpected failure: problem type internal-error, detail "an unexpected error occurred". Never stored for idempotent replay.