Patch data on OPA
opa_patch_dataApply RFC 6902 JSON Patch operations to update OPA data documents, or add a new top-level document by patching the root.
Instructions
Apply a JSON Patch (RFC 6902) to the data document. Each operation is { op, path, value? }. Omit both path and segments to patch the root of the data hierarchy, which is how a whole new top-level document is added.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Data path the patch is applied to. | |
| segments | No | Path as literal key segments, e.g. ["labels", "app.kubernetes.io/name"]. Use instead of `path` when a key contains a dot or a slash. | |
| operations | Yes | Array of JSON Patch operations. |