Forum Discussion
API - Get refreshables with capacities and groups expanded
- Anonymous5 years ago
Hi lbeaudoin ,
Are you able to get the Capacity and Groups expanded?
you have confirmed on the PBI Tenant setting of API as enabled. Using "Try it" option in the browser you dont neet to pass application id.
API call should be as below
In the Try it now window, please check
Parameters
capacityid* <capid>
refreshableid* <refid>
$expand capacity,group (add $expand in name text box, capacity,group in value & click "+" button)
Now click the Run button to get the 200 response.
Please share error code in case you get any error.
Hi nloiadn
thank you for your answer. Unfortunatly it's still unclear for me.
I do have an app with the right permissions, and Power BI tenant is configured to Allow service principals to use Power BI APIs (AD Group with Service Principal added).
When I click on the try it button, where can I specified the ApplicationID ?
As I said, today the API returns data, but without Group or Capacity expanded.
Thank you for your help
Hi lbeaudoin ,
Are you able to get the Capacity and Groups expanded?
you have confirmed on the PBI Tenant setting of API as enabled. Using "Try it" option in the browser you dont neet to pass application id.
API call should be as below
In the Try it now window, please check
Parameters
capacityid* <capid>
refreshableid* <refid>
$expand capacity,group (add $expand in name text box, capacity,group in value & click "+" button)
Now click the Run button to get the 200 response.
Please share error code in case you get any error.
- lbeaudoin5 years agoFrequent Visitor
Hi nloiadn,
it does work ! I had to use the generated url from the Try it panel in powershell and I have all the info needed !
https://api.powerbi.com/v1.0/myorg/admin/capacities/'mycapacity-id'/refreshables?%24top=100&%24expand=capacity%2Cgroup
thks for your help