Upload or replace OPA policy
opa_put_policyUpload and replace a Rego policy in OPA using its ID. The policy source is parsed server-side to enforce authorization rules.
Instructions
Upload a Rego policy under the given ID. Replaces any existing policy with that ID. The policy is uploaded as raw text/plain -- OPA parses it on the server side.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Policy ID to create or replace. | |
| source | Yes | Rego source. |