Forum Discussion
alexisc67
8 years agoHelper I
API Refreshes Data Set 400 Bad Request error after first time
Hi, I am not able to find the problem with an API call to refresh a dataset. It worked once and it doesn't anymore. It gives a 400 Bad Request Error on GetResponse(). The call works if I do a GET...
v-micsh-msft
8 years agoMicrosoft Employee
Hi,
Error 400 is an HTTP general error.
Try to replace the URL with the following:
https://api.powerbi.com/v1.0/myorg/groups/325d21e4-403b-455f-0000-XXXXXXXXX/datasets/b19ac36a-bb5b-XXXXXXXXXX/refreshes
Under the
System.Net.WebRequest.Create
function, then check the results.
Regards,
Michael
alexisc67
8 years agoHelper I
Hi,
Thansk for the response. I have tried using 'myorg' and also my company name in this place. I get the same result. Isn't strange that the GET works fine and the POST doesn't. Also, why worked once and not after.
If you can think of something else I can check, please let me know.
Alexis