Activate and Deactivate flows by API

Kaho
Tera Contributor

Hello Experts, 

I want to activate and deactivate flows not from Flow Designer Menu, but by using an API or other means.
When I change the Active and Status values of "sys_hub_flow" using the REST API,
it looks like the change has been made successfully even on Flow Designer,

but in reality the flow does not work.
If you have a solution, please help me.
Or is there any other way to activate or deactivate flows?

6 REPLIES 6

Mark Manders
Mega Patron

Please explain your use case? Why not use the flow designer menu to update the active flag on flows?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Kaho
Tera Contributor

@Mark Manders 

We would like to know whether it is possible for not developers like agents to activate and deactivate flows without accessing flow designer menu in order to prevent operational error.

So you have something running and suddenly it stops, because an agent decided to shut down a flow? That's a weird requirement. Flows are moved from Dev through other non-prod instances to Prod. Inactivation should be handled in the same way.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

In some cases, agents directly operate the Prod environment when they want to stop a flow in an emergency, such as when a problem occurs in a flow.

This is because flows are for monitoring purposes and triggered freqently, if the flow with a problem is left unattended, a large number of notifications will be sent to users.