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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ding
Frequent Visitor

REST API to Get Refreshables for Capacity return Error: 404 Couldn't find capacity id

Hi Talent,

 

I am using below REST API with the capacityID

https://docs.microsoft.com/en-us/rest/api/power-bi/capacities/getrefreshablesforcapacity

 

It return the 404 error

Response Code: 404

{
  "error": {
    "code": "ItemNotFound",
    "message": "Couldn't find capacity id "
  }
}

1. The capacity id should be correct, I get it from admin portal and as well as get capacity API, they are showing the same result

2. I did set up the API Permission in Azure App Registration as below. So the authorisation should be alright

 
Capacity.Read.All
Delegated
View all capacities
Capacity.ReadWrite.All
Delegated
Read and write all capacities

 

Any idea about the error?

 

Thanks in advanced.

4 REPLIES 4
Greg_Deckler
Super User
Super User

@Ding It's difficult to say, your URL is like:

https://api.powerbi.com/v1.0/myorg/capacities/{capacityId}/refreshables

 

Where you have replaced {capacityId} with something like 12345 so that you get:

https://api.powerbi.com/v1.0/myorg/capacities/12345/refreshables

 

Obviously 12345 is just an example, you would have your capacity id in there.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

 

Thanks Greg for promptly reply.

 

Yes, I did put in capacities ID without {}, still showing as error below

Ding_0-1600132365879.png

 

 

@Ding Try ditching your query string part of the URL and see if that makes a difference, so the part after and including the ?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Unfortunatley, doesn't work even I ditching the string

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors