1 of 1 people found this helpful
You can update the Server address, port, username or password using the REST API Update Datasource Connection method:
Do you also need to update the actual SQL in the datasource? I'm not aware of a method to do that live on Server, although the Document API can update the Database name for downloading workbooks: GitHub - tableau/document-api-python: Create and modify Tableau workbook and datasource files
I just came across your post. Did you find a solution/answer to you question?
I have to update the dbname also after it's been published. I can't connect to the production server directly from my desktop due to our company model.