
Announcements
I’m 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 I’ve tried:
I’m 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..."
I 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 I want:
I’m 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.
My questions:
Thanks in advance — any clarity or official response would be greatly appreciated!
Thanks,
Madhusudhana