Description
I have successfully found a solution to deploy a desired flow to multiple node-RED instances on distinct hardware devices / VMs.
As a generic understanding of the complete workflow, a user develops a flow locally, and then exports it using the UI's Export Option.
Interesting enough, the exported JSON structure is an array e.g.
[
{}, {}
]
Assuming that I wish to upload this flow on multiple devices automatically I will rely on the Node-RED HTTP Admin API POST /flow
, but according to the documentation the JSON structure is completely different than the exported JSON flow.
Question: Why? and Does the UI take care of restructuring the JSON file when using the Import Flow option?