Power bi Refresh Locally Rest API

Hi Dmitry

I watch this video on Call any Power BI REST API with PowerShell
Datasets - Refresh Dataset In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs

I tried the following:

  1. Created a web location connector - https://app.powerbi.com/
  2. Use a web request
    POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes

It did not work.
Is it possible?

Power Bi Premium Workspace


Hi Rykie,

No need to do this via the API. We have a dedicated action for that. Use “Refresh dataset” in the “Power BI Command” action. See also: transformations:powerbicommand [EasyMorph Help]

Thanks, Dmitry.
With regards to Power Bi Connector, it needs approval.

And it is taking a long time.

That is why I looked at something else

In order to access Power BI REST APIs you need an access key, and to obtain it you have to create a custom application in the Power BI Developer’s portal and add it to your organization (and that would require the same admin approval), then you can begin to setup OAuth and craft and parse all responses manually…

I think waiting for admin approval is the best approach here.

1 Like