Set Value at Path

data · N044 · starter-package 7.0.1

Create or replace a nested field or replace an existing list item and return the updated structure.

Behavior

Connect a regular record or list, a path of 1–12 literal field names or zero-based integer indexes, and a replacement value. A new final record field is allowed. All parent containers and any list index must already exist. Other fields and list order are preserved. The original input remains available to other wires.

Example

With {"items":[{"enabled":true}]}, path ["items",0,"enabled"] and replacement false, the result is {"items":[{"enabled":false}]}. Connect it to JSON Stringify or the next transformation.

Connector data types

DirectionConnectorTypeRequired
Inputvalue — Valueanyyes
Inputpath — Pathlistyes
Inputreplacement — Replacementanyyes
Outputresult — Updated valueanyon success

Errors and recovery

Check the segment named in the error. Use an integer for a list and a valid field name for a record. Supply an existing record or list wherever a parent is missing. An error stops the block before it emits any output.