List the organisation's policy invariants, live and retired
Account session of any workspace member. Every declaration the organisation's owner made for the environment, newest first, each with its digest and, once retired, its retirement.
Authorization
AccountSessionCookie The signed HttpOnly account session the web app holds after sign-in (also accepted as a Bearer acct_ token).
In: cookie
Query Parameters
"sandbox"Value in
- "sandbox"
- "production"
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/public/account/workspace/policy-platform/invariants"{ "invariants": [ { "record": { "schemaVersion": 1, "kind": "decionis.policy-invariant/v1", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "orgId": "25b2c2d5-a7fc-47d0-89e4-8709a1560bfa", "environment": "sandbox", "invariant": { "id": "string", "statement": "string", "decisionDomain": "string", "decisionType": "string", "input": {}, "vary": [ { "field": "string", "values": [ "string" ] } ] }, "declaredBy": "0a658536-d524-4ec3-a0d7-6a378ee32fd8", "declaredAt": "2019-08-24T14:15:22Z", "reason": "string" }, "digest": "string", "retirement": null } ]}Deprecated alias of POST /v1/policies/{policyId}/proposals/{proposalId}/decisions POST
Previous Page
Declare an organisation invariant every policy release in its scope must refuse POST
Account session of the organisation's owner only (`POLICY_INVARIANT_OWNER_REQUIRED`); same-site JSON and an Idempotency-Key are required. The invariant compiles to one scenario per combination of its varied values, each a copy of `input` with `decision_type` set to the invariant's. From the next assurance run on, every candidate of every policy whose runtime scope names the invariant's decision domain and type (or that declares no scope) must REJECT each compiled scenario, or the run fails with `INVARIANT_VIOLATED`; no dataset disposition, review or approval clears it. One live declaration per invariant id (`409 POLICY_INVARIANT_ALREADY_DECLARED`); the live set compiles to at most 500 scenarios per environment (`422 POLICY_INVARIANT_LIMIT`).

