I would like to create a flow by using nodered API with this guide https://nodered.org/docs/api/admin/methods/post/flow/
Actually my plan is to copy paste an existing flow with only few modifications (serial request properties + global variable properties). This is to allow the user of the app to connect several serial devices of the same brand and model.
However I need to generate unique ids for the nodes included in this new flow.
Is there a way to ask nodered to generate a unique node id ?
Or should I generate a random id and parse all the flows to be sure it's not already used ?
Is there no risk that node-red use this randomly generated id in the future ?
Thanks for your help