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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi All
I noticed that if I update Power BI Dataset parameter via API, it loses data source credentials, so I have to go to Power BI service and manualy update those credentials
Any idea how to sort it?
Thanks
You can even use REST API to update the credentails :
https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/update-datasource
Thats for Gateways, which we dont use
Hi @kroman ,
I think you may try to update datasource for datasets.
For reference:
Datasets - Update Datasources - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Datasets - Update Datasources In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Tryed it - doing the same thing, removing datasource credentials 😞
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |