FlowmageDocs

Set

Changes data

Replaces a schema's whole document for the rest of this run.

Settings

SettingWhat it is
SchemaRequiredThe workspace schema to work on. A run works on a private copy — nothing here changes the stored schema.
New documentThe complete new document, as JSON or one {{ }} expression. The node outputs it, so a downstream node needs no second schema.get.
Technical details
KeyValue
nametexta schema name, listed in `requires.schemas`
valueany JSON

Output

What this node gives depends on the data it gets.

Sample output, and the expression for each field

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "name": "<schema>"
  },
  "label": "Set",
  "type": "schema.set",
  "version": 1
}