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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
shocko
Frequent Visitor

Query RestAPI with POST

I have a RestAPI that returns data but requires a GET to some endpoints and a POST to others. Can PowerBI send HTTP POST to a Web Data or OData data source?

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @shocko ,

 

Yes, you can achieve it, please refer to this:

Web Services And POST Requests In Power Query 

 

Best regards,
Lionel Chen

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

6 REPLIES 6
v-lionel-msft
Community Support
Community Support

Hi @shocko ,

 

Yes, you can achieve it, please refer to this:

Web Services And POST Requests In Power Query 

 

Best regards,
Lionel Chen

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

Thanks for the link! Is there anywhere to raise feature requests for PowerBI. Obstensibly one would think we should be able to do this within the web connector UI natively? 

Hi @shocko ,

 

You mean changing the HTTP request method in the UI interface of the web connector?

jjj3.PNG

 

Best regards,
Lionel Chen

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

Yes, there does not appear to be an option to set method to POST here. 

blopez11
Super User
Super User

Yes, you can force an HTTP post by using the Content parameter of Web.Contents, please see https://docs.microsoft.com/en-us/powerquery-m/web-contents

 

Good luck,

You can take a look at the following for further reference: https://community.powerbi.com/t5/Desktop/How-to-run-POST-request-in-M/td-p/457138

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.