Skip to main content

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​

The policy version is declared.

Response Headers
    Idempotency-Replayed

    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.