Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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.
POST https://api.powerbi.com/v1.0/myorg/imports?datasetDisplayName={datasetDisplayName}&nameConflict={nameConflict}&skipReport={skipReport}&overrideReportLabel={overrideReportLabel}&overrideModelLabel={overrideModelLabel}&subfolderObjectId={subfolderObjectId}
Solved! Go to Solution.
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.
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.
Hello!
Is there a method to create a subfolder within a specific workspace using the Power BI REST API?
Thanks, @v-fenling-msft 🙌 The parameter worked. I hope Microsoft improves the documentation.
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.
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.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
37 | |
30 | |
18 | |
13 | |
8 |
User | Count |
---|---|
50 | |
40 | |
32 | |
16 | |
13 |