Redeploy an existing flow from another flow using the flows API

Here is a demo you can try out: Dynamic MQTT LWT birth, Close & Will Property - #2 by Steve-Mcl

You only really need the connect and disconnect actions