Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I'm really struggling to find what is wrong with my M code to make a POST request. Although I know you would need to know the API to know exactly what is wrong but I just want to check that there is nothing wrong with the way I am making the request? As I am getting a 400. Bad Request error.
For info the API I'm using is Clockify.
I have connected to the API fine for GET requests but can't figure out what I'm doing wrong. And I just want to rule out that I am doing something wrong with the Request rather than misunderstanding the API.
Thanks for any help at all
Solved! Go to Solution.
Hi @Anonymous ,
I cannot spot anything obvious.
But you can reduce the risk of typing errors if you use the Json.FromValue function to define the body of your request: Easy POST requests with Power BI and Power Query using Json.FromValue – The BIccountant
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @Anonymous ,
I cannot spot anything obvious.
But you can reduce the risk of typing errors if you use the Json.FromValue function to define the body of your request: Easy POST requests with Power BI and Power Query using Json.FromValue – The BIccountant
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 7 | |
| 7 |