Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Refresh Execution Details API status 405

I am testing the REST call for Refresh Execution Details in PowerBI and getting a 405 Method not Allowed. I understand that this endpoint does not work for scheduled and manual refreshes. But I am trying to do an asynchronous refresh with this API Asynchronous refresh with the Power BI REST API - Power BI | Microsoft Docs (POST /refreshes) using Postman. This refresh shows as refreshType: ViaApi. I try to get this refresh execution details (via Postman) and get the same response and error as the scheduled and manual refreshes.

nahimmtv_0-1650645144263.png

 

Am I missing something? Is ViaApi not an Asynchronous refresh?

Thanks!

5 REPLIES 5
ljt5
Frequent Visitor

Hi, this question was never solved.

 

In my experience, you cannot get the execution details of 'ViaApi' refreshes. Only 'ViaEnhancedApi' refreshes.

 

I hope this helps, I never found any information about this (I'm not saying there is not information) but in my experience this is what I discovered.

 

 

Anonymous
Not applicable

Hi @Anonymous,

what kind of request are you using to get infromations about refresh? I'm using 

Anonymous
Not applicable

Hi Marky,

Thanks for the insight!

Yes I am using a service principal with Dataset.ReadWrite.All and Dataset.Read.All permissions. I actually use that one to get the refresh history via the api and works just fine. The problem comes when I use the request you posted here (https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes/{refreshId})

I am still facing this issue

Anonymous
Not applicable

Is the service principal admin for the workspace where dataset is?

Anonymous
Not applicable

Hi  @Anonymous , 

 

ViaApi indicates refresh was triggered by an API call. I think Get Refresh Execution Rest API returns execution details of an asynchronous refresh operation for the specified dataset from the specified workspace.

For reference:

Datasets - Get Refresh Execution Details

Datasets - Get Refresh Execution Details In Group

Please make sure Asynchronous refresh has completed. 

Please make sure the app you use to get token has Dataset.ReadWrite.All or Dataset.Read.All.

HTTP Error “405 Method Not Allowed”: How to solve the problem

 

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.