Replace ALL Node-RED flows
nodered_set_flowsReplace and deploy the entire Node-RED flow configuration, overwriting all tabs. Pass a revision to avoid clobbering concurrent changes and pick how the deploy is applied.
Instructions
Replace the ENTIRE Node-RED flow configuration and deploy. This overwrites every tab — prefer nodered_create_flow / nodered_update_flow unless you really mean to rewrite everything. Pass the 'rev' from nodered_get_flows to avoid clobbering a concurrent change. deployment_type controls how Node-RED applies it ('full' restarts all flows; 'flows'/'nodes' restart only what changed; 'reload' re-reads from storage). Requires HA_ALLOW_WRITE=true and HA_ALLOW_CONFIG_WRITE=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev | No | Revision from nodered_get_flows, for optimistic concurrency. | |
| flows | Yes | The complete flow config: an array of Node-RED node objects (tabs, nodes and config nodes). | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. | |
| deployment_type | No | How Node-RED applies the deploy. Defaults to 'full'. |