Document path.
Optionalmetrics: booleanInclude performance metrics.
Gets a document by path (GET with optional input as query param).
Slash-separated document path.
Optionaloptions: {Optional parameters.
Optionalexplain?: "notes" | "fails" | "full" | "debug"Return query explanation in addition to result. Values: notes, fails, full, debug.
Optionalinput?: DocumentProvide an input document. Format is a JSON value that will be used as the value for the input document.
Optionalinstrument?: booleanInstrument query evaluation and return a superset of performance metrics in addition to result. See (Performance Metrics)[https://www.openpolicyagent.org/docs/rest-api#performance-metrics] for more detail.
Optionalmetrics?: booleanReturn query performance metrics in addition to result. See (Performance)[https://www.openpolicyagent.org/docs/rest-api#provenance] Metrics for more detail.
Optionalpretty?: booleanIf parameter is true, response will be formatted for humans.
Optionalprovenance?: booleanIf parameter is true, response will include build/version info in addition to the result. See Provenance for more detail.
OptionalstrictBuiltinErrors?: booleanTreat built-in function call errors as fatal and return an error immediately.
Document result and optional metadata.
Patches a document using JSON Patch (RFC 6902).
Document path.
Array of JSON Patch operations.
Gets a document using POST with input in request body.
Document path.
Request body containing input.
Optionaloptions: {Optional parameters.
Document result and optional metadata.
Creates or overwrites a document.
Document path.
Document value.
OptionalifNoneMatch: booleanPrevent overwrite if document exists.
Optionalmetrics: booleanInclude performance metrics.
Webhook-style document evaluation (v0 API).
Document path.
Input document (raw, not wrapped).
Optionalpretty: booleanFormat response for humans
Raw result (e.g., true, {}).
Deletes a document.