This API endpoint allows you to partially evaluate Rego queries and obtain a simplified version of the policy. The example below assumes that OPA has been given the following policy (use PUT /v1/policies/{path}):
Compile API request body so that it contain the following fields:
For example:
Partial evaluation
In some cases, the result of partial valuation is a conclusive, unconditional answer. See for details.