Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Error 401 only while uploading pbix files using rest api

 

I have to upload a pbix using rest api but I am unable to do so. I am getting 401 error when I am trying to publish the reports whereas I am able to download the pbix files. (Tried in browser itself)

https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimport

I tried in the browser and using postman but received the same error.

 


I have given all the permissions to the app then too I am getting Error 401.

 


What do I need to change/modify?

3 Replies

  • Hi there

    Have you created the app with the correct permissions in Azure Active Directory?
    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi

      Yes I granted the permissions to the app. Still I am facing the issue. I am able to refresh using rest api and I am able to download the pbix but I am unable to upload it.

      Here's the image

      • GilbertQ's avatar
        GilbertQ
        Super User
        You then should be able to upload

        What permissions do you have on the App Workspace?