Declare a disposition policy version
PUT/disposition-policies/:version
Declares policy version version (any positive integer; the service
does not require it to be current + 1, and the declared version
becomes the current one). The table maps
(grade, productClass) to an outcome; the entry productClass: "*" is
the required default per grade, which makes Decide total. Also
carries the return window days, the max units per line and the
vetoOutcome a guardrail demotion falls back to (default DISPOSE).
An outcome outside the five values is 400 invalid-policy, a grade
outside A/B/C/SCRAP 400 invalid-grade. returnWindowDays defaults to
0 when omitted. A version that is already declared is refused with
409 policy-version-exists: the policy is append-only, a change is a
new version, never a rewrite. The other 409 of this operation is
idempotency-key-reused.
Requires an Idempotency-Key.
Request
Responses
- 201
- 400
- 409
- 500
The policy version is declared.
Response Headers
Present, with the value true, only when the answer is a replay of the stored answer of an earlier request with the same Idempotency-Key.
Malformed JSON body, an unknown field, a NUL byte in the body, or an invalid path, query or header parameter.
The command is refused by the domain rules, another request changed the resource first, or the Idempotency-Key was reused.
Unexpected server error.