Forum Discussion
How to update data sources of datasets programmatically
- 4 years ago
The link of that request recommends using this Update Datasources in Group:
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/update-datasources-in-groupPlease read the limitations in the post to be sure you can do what you are looking for.
I hope that helps
Hi. Bad request is usually about having a wrong url or parameters. In your case using the C# library will help you always getting the correct url. However, if you have already try some requests and are working, you should take a look at the documentation of the API.
I have just read that the Set All Dataset Connections In Group is deprecated and no longer supported 😞
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/set-all-dataset-connections-in-group
I don't think you can do that any more. It suggests using Update Datasources In Group. You can try that one.
I hope that helps,
Thanks, that is helpful. Could you give me the exact api operation to update datasources in the api?
- ibarrau4 years agoSuper User
The link of that request recommends using this Update Datasources in Group:
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/update-datasources-in-groupPlease read the limitations in the post to be sure you can do what you are looking for.
I hope that helps