Write data to OPA
opa_put_dataWrite or replace JSON data at a specified OPA data path. Use dotted or slash-separated paths, or segments for keys containing dots or 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. |