Forum Discussion

dheer1610's avatar
dheer1610
Frequent Visitor
4 years ago

Upload and Download Power Bi file with help of rest API.

I'm trying to download and upload PBIX file through rest api.As we are creating web UI from where user can move pbix files to diferent environment (Dev,Test, Prod) with version control on storage location.

I'm refering MS docs

To download: (Completed/Achived)
https://docs.microsoft.com/en-us/rest/api/power-bi/reports/export-report-in-group

To Upload: (Pending)
https://docs.microsoft.com/en-us/rest/api/power-bi/imports

  1. Create a temporary upload location using this API call.
  2. Upload the .pbix files using the shared access signature URL from the API call response.
  3. Call Post Import In Group, specifying the shared access signature URL in the fileUrl parameter of the request body.

I'm stuck at upload part (2), how to upload a file(.Pbix) after creating a temporary upload location.

Can someone help me on this or share any other reference material .

3 Replies