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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
shalini-ms
Microsoft Employee
Microsoft Employee

Can we create dataset(from WEB/API) using Power BI REST API

Greetings,

 

Can we create a dataset from a WEB/API data source using the Power BI rest APIs?

The Data source API requires token authentication to get the data.

 

From the Power BI desktop, we are able to get this API data using the power query, want to confirm if same can be achieved from the Power bi rest APIs ( create Datasource / Push data set APIs).

 

If it is possible, can you share a sample for reference? Thanks in advance!

 

Regards,

Shalini

 

1 ACCEPTED SOLUTION
shalini-ms
Microsoft Employee
Microsoft Employee

Hi,

 

Thank you team, I got the required information. 

 

I hope this will help others:

 

  • We should not use Power BI rest APIs to create regular datasets, it is suitable for the Push datasets
  • Power BI rest API has a limitation of 75 columns for the push datasets
  • One should use TOM (Tabular Object Model) or XMLA to create a regular dataset to overcome the above-mentioned limitations
  • TOM/XMLA only works for Premium workspaces and only if the XMLA endpoint has write activities enabled for the capacity the workspace is assigned to.

 

https://docs.microsoft.com/en-us/analysis-services/tom/tom-pbi-datasets?view=asallproducts-allversio...

 

Best Regards,

Shalini

View solution in original post

5 REPLIES 5
shalini-ms
Microsoft Employee
Microsoft Employee

Hi,

 

Thank you team, I got the required information. 

 

I hope this will help others:

 

  • We should not use Power BI rest APIs to create regular datasets, it is suitable for the Push datasets
  • Power BI rest API has a limitation of 75 columns for the push datasets
  • One should use TOM (Tabular Object Model) or XMLA to create a regular dataset to overcome the above-mentioned limitations
  • TOM/XMLA only works for Premium workspaces and only if the XMLA endpoint has write activities enabled for the capacity the workspace is assigned to.

 

https://docs.microsoft.com/en-us/analysis-services/tom/tom-pbi-datasets?view=asallproducts-allversio...

 

Best Regards,

Shalini

How to use the Rest API to create a push dataset?

Anonymous
Not applicable

Hi  @shalini-ms ,

 

Regarding the Dataset in the rest api, you can only go to get or change, but not to create.

Datasets - REST API (Power BI Power BI REST APIs) | Microsoft Docs

 

Best Regards,

Liu Yang

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

lbendlin
Super User
Super User

The Power BI REST API is designed to interact with the Power BI Service.  You can use OAUTH2 or AAD. If your API endpoint is different then you need to use whatever auth mechanism it requires.

 

Please provide more details, documentation for the API etc.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.