Upload or replace OPA policy
opa_put_policyUpload or replace a Rego policy by ID. The policy source is sent as plain text and parsed by OPA.
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. |