Forum Discussion
udione
Helper I
1 year agoSemantic model change Connection with rest API to map to a different connection
Is there a rest API endpoint to update semantic model connection to map to a different connection.
I'm looking for automated way to change the semantic model connection that it is mapped to. So it doesn't have to be done manually in UI in the list below.
2 Replies
- Jai-Rathinavel
Super User
udione You can update the Semantic Model's datasources via the below API. You will need Dataset.ReadWrite.All scope for your application.
Link to Update Datasources API Documentation: https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-datasources-in-group
Did I answer your question ? Please mark this post as a solution.
Thanks,
Jai
- udione
Helper I
I don't think the endpoint works for updating it to Cloud Connection.