Upload or replace OPA policy
opa_put_policyUpload a Rego policy by ID, replacing any existing policy with the same ID. The raw policy text is sent to OPA for server-side parsing and storage.
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. |