I have started exploring, how to create a dynamic nodes in NodeRED and I found it was not possible, instead I can create a new flow dynamically with the nodeids mentioned below as suggested by the documentationo. I tested with below request with Bearer Token and Content-Type and it created a new flow and returned an object.
But the issue was as soon as below request executed successfully all my configurations got changed and Node-Red UI remains blank with no flow visible and running in the background, I have around 20-30 flows created and lost those.
Can someone help in restoring my configurations as earlier.
"nodes": ["a2d5ec3d.d9992","b87a8378.e46a2","54c4b89d.82f088" ],
Please find the attached image.