Write data to OPA
opa_put_dataWrite or replace a JSON value at a specified data path in OPA. Use dotted or slash notation, or pass segments for keys containing both dots and slashes.
Instructions
Write or replace a value at the given data path. Body is sent as JSON. A path is read as dotted (users.alice) unless it contains a slash, in which case slash is the only separator (users/alice), so a key such as example.com is addressable as hosts/example.com. Pass segments instead when a key contains both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Data path to write to. | |
| value | No | JSON value to store at this path. | |
| 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. |