authz-policies

Create or update an authz policy

Changed on

(reserved for future use) Validates the Rego policy (compile + smoke test in an isolated sandbox) and registers it as a new active version, then syncs it to OPA.

Required scope: `policy:authz:manage`

post/authz/policies

Request

  • Base URL
    https://developer.qaip.com/api/v1
  • URL
    https://developer.qaip.com/api/v1/authz/policies
  • Auth
    API key in header x-api-key

Request body

namestring required
regostring required

Rego source. package must be qaip.authz.tenants["<tenant>"]["<name>"].

descriptionstring

Response

Policy created

namestring required
versioninteger required
rego_sha256string required
warningsstring[] required

Changes

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      endpoint added