Forum Discussion
REST API. jobs/instances?jobType=Refresh causes error while manual refresh works
- 10 months ago
The problem was with permissions. Was trying to refresh with service principal which is not supported at the moment
Hi gshapiev,
Thank you for reaching out to the Microsoft Fabric Forum Community.
The error happens because you’re trying to refresh a Dataflow Gen2 with the old Power BI REST API, which only supports Gen1 dataflows. That’s why the call returns 404 Not Found, even though the refresh works fine inside the workspace. The fix is to use the Fabric REST API instead of the Power BI API, make sure you use the correct workspace ID and item ID from Fabric, and authenticate with the Fabric scope. With the right endpoint, IDs, and permissions, the refresh will work as expected.
Thanks & Regards,
Prasanna Kumar
I'm using fabric api
https://api.fabric.microsoft.com/v1/workspaces/{{WorkspaceId}}/dataflows/{{DataflowId}}/jobs/instances?jobType=Refresh
The call actually goes through and I get 202 response. The error is on the service side.