Declare a new version of a handling policy
PUT/exception-policies/:sourceType
Declares the handling policy of a source type at the next version
(versions are append-only: the first declaration is version 1, every
accepted declaration after that is +1). sourceType is the full
CloudEvents type of the governed source fact; the service checks its
shape only (com.warehouse.wms|wes.<context>.<entity>.<Event>), not
that a consumer for it exists. The new version governs cases opened after the
declaration; open cases keep the severity, queue and SLA they were
opened with. autoResolve is omitted or null when the source type has
no auto-resolve rule. Requires an Idempotency-Key. Publishes
ExceptionPolicyDeclared.
Request
Responses
- 201
- 400
- 409
- 500
The policy version is declared.
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 stored answer is replayed for 24 hours after the first execution; past that window the key is free again and a repeat executes anew.
Malformed JSON body, an unknown field, an invalid path, query or header parameter, or a NUL byte in a body.
The case is in the wrong state for the command, another request changed it first, or the Idempotency-Key was already used with a different request (idempotency-key-reused; within the 24-hour replay window — past it the key is free again).
Unexpected server error.