A Couple of basic questions

Hello, I am pretty new to nodered. however i found these points to be unclear and wanted to ask them here.

  1. Can we programatically trigger the addition of flows to the pallette? Let me explain a little, If i have a json like this for example, stored on a remote location, Is it possible to add this flow to the workspace programatically, upon an event lets say, without editing the main flows file?
  1. Can i be linked to a page or an article which describes how the "id" is generated and used to refer a particular node ? (If they exist already, couldnt find them myself :cry: )
  1. well you can use the admin API to add things to the flow - but you will in effect be editing the flow file as you have to deploy it to make it active. (Which then writes it to storage). Or if it is running on the remote location by opening a browser to it - then that is a different session anyway - so wont change anything locally.

  2. the id is a random number that is auto allocated when you add or import a node - it is unique across the flow, and just used as an internal reference.

1 Like

Thank you for repliying. This solves my issue. :slight_smile:

You can add and remove entire flows (i.e. tabs) with the Admin API, but I have not seen where you can add or remove individual nodes, or a group of nodes to an existing flow via the Admin API... only via the editor?