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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
zhhorton
New Contributor II

[ISSUE] Power BI REST API - GetDashboardsAsAdmin

Hello,

 

In an attempt to retrieve some information from the Power BI REST API (specifically, the GetDashboardsAsAdmin), we have run into an issue where the expand parameter is not accepted and will return a 400 Client Error: Bad request for url. Removal of the ?$expand=tiles returns the expected result, so it is not any other issue aside from the format of the GET request URL.

 

Link to referenced documentation (here)

 

Has anyone else run into this issue and found a way around it? The documentation provided may no longer be up to date. Thanks.

1 ACCEPTED SOLUTION
tayloramy
Contributor III

Hi @zhhorton

WHen using $expand, a $top also needs to be specified. 

 

In my enviornment: 

GET https://api.powerbi.com/v1.0/myorg/admin/dashboards?%24expand=tiles

returns a 400 response with this body: 

{
  "error": {
    "code": "InvalidRequest",
    "message": "This API expects $top query option to be provided."
  }
}

 

Where as this:

GET https://api.powerbi.com/v1.0/myorg/admin/dashboards?%24expand=tiles&%24top=10

returns a 200 code with data

 

If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, please mark this as the solution.

 





If you found this helpful, consider giving some Kudos.
If I answered your question or solved your problem, mark this post as the solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
tayloramy
Contributor III

Hi @zhhorton

WHen using $expand, a $top also needs to be specified. 

 

In my enviornment: 

GET https://api.powerbi.com/v1.0/myorg/admin/dashboards?%24expand=tiles

returns a 400 response with this body: 

{
  "error": {
    "code": "InvalidRequest",
    "message": "This API expects $top query option to be provided."
  }
}

 

Where as this:

GET https://api.powerbi.com/v1.0/myorg/admin/dashboards?%24expand=tiles&%24top=10

returns a 200 code with data

 

If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, please mark this as the solution.

 





If you found this helpful, consider giving some Kudos.
If I answered your question or solved your problem, mark this post as the solution!

Proud to be a Super User!





zhhorton
New Contributor II

Thank you @tayloramy, that is very helpful.

 

I have found the $top parameter is necessary much more than the documentation mentions which causes some confusion. I appreciate your help!

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Free Fabric Certifications

Free Fabric Certifications

Get Fabric certified for free! Don't miss your chance.

January Fabric Update Carousel

Fabric Monthly Update - January 2026

Check out the January 2026 Fabric 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.

Users online (4,721)