node-Red deactivate flows

hello everyone, is there a way to deactivate individual flows with a command? so that I can automatically deactivate and reactivate it ..?

Here is the way to deactivate the flow via ui

and programatically i think there is no direct option. Please correct me if im wrong.

i would use the runtime api to get the flow, add the disabled option and set the flow with the api again.

What is your context @automati ? Where do you want to disable the flow? From a node within a flow or with another application?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.