
Announcements
We're trying to programmatically cancel running Power Automate flows from an external system (Python backend) using just:
This includes flows triggered by SharePoint (like “When an item is created/modified”), not just manually triggered ones.
What we’ve tried
Using the public REST API:
POST https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments/{envId}/flows/{flowId}/triggers/manual/histories/{runId}/cancel?api-version=2016-11-01
But it fails with:
"No HTTP resource was found that matches the request URI..."
What we understand this only works for flows with manual triggers (e.g., “When an HTTP request is received”). However...The “Cancel Flow Run” action available in the Power Automate Management Connector (inside Power Automate flows) does cancel SharePoint-triggered flows — using the same identifiers (runId, flowId, envId). This confirms the functionality does exist internally.
What we want
We're looking for a way to cancel any running flow — regardless of its trigger — using a public REST API, and without needing premium features like Dataverse or solution-aware flows.
Questions:
Thanks in advance — any clarity or official response would be greatly appreciated!
— Bharadwaj Jannu