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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.