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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
wangzhen
Regular Visitor

API Get Refresh Schedule In Group not working

I want to use following two APIs with same groupId and datasetId, however only the last API works. 

 

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

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

 

The first API returns:

{"error":{"code":"ItemNotFound","message":"Dataset xxxxxx is not found! please verify datasetId is correct and user have sufficient permissions."}}

 

Please help me on this one, thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @wangzhen 

 

Ensure that the user or service principal you are using to make the API call has sufficient permissions to access the dataset. The user needs to have at least 'Contributor' access to the workspace (groupId) and the dataset.

 

Use the following API to list all datasets in a group and check if your `datasetId` is present:

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

This will help you verify if the `datasetId` is correct.

 

The refreshes API is available only for datasets that have a refresh schedule set up. If the dataset doesn't have a refresh schedule, you won't be able to retrieve refreshes for it.

 

 

Best Regards

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @wangzhen 

 

Ensure that the user or service principal you are using to make the API call has sufficient permissions to access the dataset. The user needs to have at least 'Contributor' access to the workspace (groupId) and the dataset.

 

Use the following API to list all datasets in a group and check if your `datasetId` is present:

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

This will help you verify if the `datasetId` is correct.

 

The refreshes API is available only for datasets that have a refresh schedule set up. If the dataset doesn't have a refresh schedule, you won't be able to retrieve refreshes for it.

 

 

Best Regards

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.