Upload or replace OPA policy
opa_put_policyUpload a Rego policy to OPA under a specified ID, replacing any existing policy. Provide policy ID and Rego source as plain text.
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. |