Forum Discussion
[ISSUE] Power BI REST API - GetDashboardsAsAdmin
- 11 months ago
Hi zhhorton,
As mentioned in your data egnieering forum post:
[ISSUE] Power BI REST API - GetDashboardsAsAdmin - Microsoft Fabric Community
When using $expand, a $top also needs to be specified.
In my enviornment:
GET https://api.powerbi.com/v1.0/myorg/admin/dashboards?%24expand=tilesreturns 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=10returns 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.
Hi zhhorton,
As mentioned in your data egnieering forum post:
[ISSUE] Power BI REST API - GetDashboardsAsAdmin - Microsoft Fabric Community
When using $expand, a $top also needs to be specified.
In my enviornment:
GET https://api.powerbi.com/v1.0/myorg/admin/dashboards?%24expand=tilesreturns 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=10returns 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.
- zhhorton11 months agoNew Member
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!