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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
wangzhen
Regular Visitor

API - Get Refresh Execution Details In Group not working

Hi

I am using this API to get execution details

 

https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes/{refreshId}

 

but the response return following message:

{"error":{"code":"MethodNotAllowed","message":"Operation failed - Refresh details unavailable. Dataset ID 86f3b49a-2ed0-451d-9a6b-35ed4b9a2397 Refresh ID a697c8f7-6a56-4954-be5f-5a4b86213a69 RefreshType is Scheduled."}}

 

I entered "requestId" as {refreshId} in the API, what did I miss in this API call?

 

Thanks

Wangzhen

1 ACCEPTED SOLUTION
hackcrr
Memorable Member
Memorable Member

Hi, @wangzhen 

Make sure you have the correct groupId and datasetId. you can list all groups and datasets to verify these IDs

GET https://api.powerbi.com/v1.0/myorg/groups
GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets

Make sure you have the correct refreshId. you can use the following API to get a list of refreshes for the dataset:

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes

Make sure your application has the necessary permissions: Dataset.ReadWrite.All
Dataset.Read.All

Here is the correct usage of manual refresh:

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes/{refreshId}

If you need more information about scheduled refreshes, consider: triggering a manual refresh:

POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes

Use to set a new historical record:

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes

By following these steps, you should be able to retrieve refresh execution details using the Power BI REST API.

 

hackcrr

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

View solution in original post

2 REPLIES 2
insafM
Frequent Visitor

Hello , 

I saw this topic because I am also facing the same error.

I wanted to share more info that may be helps you.

If the refresh id done "Via API" and not "VIA Enhanced API" you will always get the 405 error. 
it is mentionned also in the documentation here :

insafM_0-1728379657921.png

I hope this helps.

Insaf

hackcrr
Memorable Member
Memorable Member

Hi, @wangzhen 

Make sure you have the correct groupId and datasetId. you can list all groups and datasets to verify these IDs

GET https://api.powerbi.com/v1.0/myorg/groups
GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets

Make sure you have the correct refreshId. you can use the following API to get a list of refreshes for the dataset:

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes

Make sure your application has the necessary permissions: Dataset.ReadWrite.All
Dataset.Read.All

Here is the correct usage of manual refresh:

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes/{refreshId}

If you need more information about scheduled refreshes, consider: triggering a manual refresh:

POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes

Use to set a new historical record:

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes

By following these steps, you should be able to retrieve refresh execution details using the Power BI REST API.

 

hackcrr

If this post helps, then please consider Accept it as the solution and kudos to this post 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.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.