Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

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.

 

power bi import.png


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

 

app permision.png


What do I need to change/modify?

3 REPLIES 3
GilbertQ
Super User
Super User

Hi there

Have you created the app with the correct permissions in Azure Active Directory?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

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

grant admin permission issue.PNG

You then should be able to upload

What permissions do you have on the App Workspace?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.