OPA Policies

Create an OPA policy

Create a new OPA Rego policy for the organization. Business+ tier required.

post/v1/org/opa-policies

Request

  • Base URL: https://api.1claw.co
  • URL: https://api.1claw.co/v1/org/opa-policies
  • Auth: HTTP bearer

Request body

namestring required
rego_sourcestring

OPA Rego module source

wasm_bundle_base64string

Optional WASM bundle (base64)

entrypointstring

Response

OPA policy created

idstring uuid
org_idstring uuid
namestring
rego_sourcestring
has_wasm_bundleboolean
entrypointstring
is_activeboolean
enforcement_status'shadow' | 'enforce' | 'inactive'
created_bystring uuid
created_atstring date-time
updated_atstring date-time

Changes

No recorded changes to this operation across all 1 revision of this API.