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 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,
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