How to turn On/Off workflow via api in HubSpot

I want to disable workflow via api. so that i can control the flow of data from hubspot to my application.

Note: With out delete, i need to disable and later it can be enable.

Anyone please help.

Hi, @VinothMatrix.

Per this related post, it is currently not possible to disable workflows via API.

If you need full control over when data flows to your application, I recommend controlling contact enrollment through this endpoint. If you rely on lists for your enrollment criteria, use this endpoint before enrolling contacts.

Thanks for your response.