1 of 1 people found this helpful
One approach would be to leverage the tableau REST API (This python library is immensely helpful there - GitHub - tableau/server-client-python: A Python library for the Tableau Server REST API )
- Download the workbook using the API
- Modify the .twb XML file and replace the references to the appropriate tables
- Republish the workbook to the server
I have not found a way to leverage the REST API to make those changes to a workbook since that information appears to be embedded in the XML of the Tableau file formats.