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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
cazcon
New Member

Power BI API Rest to publish specific subfolder - get UUID subfolder

Currently Power BI have a API to publish to particular worskpaces

Imports - Post Import - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Currently, Power BI has an API to publish to specific workspaces. And it is also defined to publish to a subfolder, but the problem is that the UUID of the subfolder is required.
As far as I could investigate, there is no API to return the UUID of a subfolder. The URL gives you an ID, but it is not in UUID format.

cazcon_1-1721227071703.png

 

cazcon_0-1721227051605.png

 

POST https://api.powerbi.com/v1.0/myorg/imports?datasetDisplayName={datasetDisplayName}&nameConflict={nameConflict}&skipReport={skipReport}&overrideReportLabel={overrideReportLabel}&overrideModelLabel={overrideModelLabel}&subfolderObjectId={subfolderObjectId}
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,@cazcon 

I am glad to help you.  

According to your description, you want to use Power BI API Rest to publish specific subfolder?

 

If I understand you correctly, then you can refer to my solution. 

Based on your description, it is recommended that you try changing the subfolderObjectId in the Post URL to the subfolderId on the Power BI Service address bar.

vfenlingmsft_0-1721292138297.png

 

 

POST https://api.powerbi.com/v1.0/myorg/imports?datasetDisplayName={datasetDisplayName}&nameConflict={nameConflict}&skipReport={skipReport}&overrideReportLabel={overrideReportLabel}&overrideModelLabel={overrideModelLabel}&subfolderId={subfolderId}

 

I hope this advice is helpful.

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.


Best Regards,
Fen Ling,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
DimitraG
Frequent Visitor

Hello!

Is there a method to create a subfolder within a specific workspace using the Power BI REST API?

cazcon
New Member

Thanks, @Anonymous 🙌 The parameter worked. I hope Microsoft improves the documentation.

Anonymous
Not applicable

Hi,@cazcon 

I am glad to help you.  

According to your description, you want to use Power BI API Rest to publish specific subfolder?

 

If I understand you correctly, then you can refer to my solution. 

Based on your description, it is recommended that you try changing the subfolderObjectId in the Post URL to the subfolderId on the Power BI Service address bar.

vfenlingmsft_0-1721292138297.png

 

 

POST https://api.powerbi.com/v1.0/myorg/imports?datasetDisplayName={datasetDisplayName}&nameConflict={nameConflict}&skipReport={skipReport}&overrideReportLabel={overrideReportLabel}&overrideModelLabel={overrideModelLabel}&subfolderId={subfolderId}

 

I hope this advice is helpful.

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.


Best Regards,
Fen Ling,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.