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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
pcand01
Regular Visitor

API Access works only for my personal workspace

Hi,

When I use the API to access and refresh a dataset, it works for my personal workspace.
https://api.powerbi.com/v1.0/myorg/datasets/e04f4d40-684e-4d07-8d6b-96f4e635f545/refreshes
POST https 1.1 ==> /v1.0/myorg/datasets/e04f4d40-684e-4d07-8d6b-96f4e635f545/refreshes
Host: api.powerbi.com

When I try to access any other workspace I get an error  

------------------------------------
ERROR (Request Failed)
------------------------------------

The remote server returned an error: (404) Not Found.
Response Url: https://api.powerbi.com/v1.0/myorg/datasets/3c37808d-e63e-46a3-b2ca-bea95bccfb22/refreshes

Status Code: NotFound

Response Body: {"error":{"code":"ItemNotFound","message":"Dataset 3c37808d-e63e-46a3-b2ca-bea95bccfb22 is not found."}}

 

I suspect that it can be an authorisation issue while I have no idea where to start to fix it.
Any pointer would be appreciated. Thanks, Philippe

1 ACCEPTED SOLUTION
Jayendran
Solution Sage
Solution Sage

Hi @pcand01 ,

 

1. You have to use the different api to call a different workspace other than My workspace

 

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

 

where groupid is the workspaceid 

 

Am saying this because in your error you are still using the Myworkspace API

 

2. Whenever you got the autentication issue. please check whether your SPN/Service account added as the ADMIN to the particular workspace.

View solution in original post

1 REPLY 1
Jayendran
Solution Sage
Solution Sage

Hi @pcand01 ,

 

1. You have to use the different api to call a different workspace other than My workspace

 

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

 

where groupid is the workspaceid 

 

Am saying this because in your error you are still using the Myworkspace API

 

2. Whenever you got the autentication issue. please check whether your SPN/Service account added as the ADMIN to the particular workspace.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.