Upload or replace OPA policy
opa_put_policyUpload a Rego policy to OPA by ID, replacing any existing policy with the same ID. Provide the policy 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. |