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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.