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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
alfdagos
Frequent Visitor

Create dataset in direct query mode using the PowerBI Rest API

Hello everyone!
from the documentation of the PowerBI REST API, I suppose that the correct API to be invoked in order to create a dataset is "Push Datasets - Datasets PostDatasetInGroup" (https://docs.microsoft.com/en-us/rest/api/power-bi/pushdatasets/datasets_postdatasetingroup).
Anyway I cannot understand what are the correct parameters to send in post (in addition to the authentication token clearly ..)
There are only one example but isn't esaustive for me.


Where is the Direct Query mode declaration?
Where is the declaration of type of datasource set? (for example ... Azure SQL, Spark HDInsight, etc.)
The connection credentials?

 

Is it possible to see some complete example of creating datasets in direct query mode?

 

Thank you so much for the support !!

 

Regards,

   Alfredo

1 REPLY 1
alfdagos
Frequent Visitor

Hi to all!

 

Please, no one can help me?

 

Thanks a lot to all!!

   Best regards,

   A.

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.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.