Forum Discussion

lbeaudoin's avatar
lbeaudoin
Frequent Visitor
5 years ago
Solved

API - Get refreshables with capacities and groups expanded

Hi dear PBI community,   I'm trying to query from my premium capacity all refresh with groups expanded from this documentation :  https://docs.microsoft.com/en-us/rest/api/power-bi/admin/getrefres...
  • Anonymous's avatar
    Anonymous
    5 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

    GET https://api.powerbi.com/v1.0/myorg/admin/capacities/{capacityId}/refreshables/{refreshableId}?$expand=capacity,group

     

     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.