Skip to content
Prev Previous commit
Next Next commit
Minor fixes to request payloads
  • Loading branch information
vchavatapalli committed Jul 22, 2025
commit dc92d17682f2a8291bd7fcef683e1863789f932f
2 changes: 1 addition & 1 deletion samples/update_connection_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def main():
connection = connections[0]
connection.username = args.datasource_username
connection.password = args.datasource_password
connection.authentication_type = args.authentication_type
connection.auth_type = args.authentication_type
connection.embed_password = True

updated_connection = update_function(resource, connection)
Expand Down
2 changes: 2 additions & 0 deletions tableauserverclient/server/request_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,8 @@ def update_req(self, xml_request: ET.Element, connection_item: "ConnectionItem")
connection_element.attrib["userName"] = connection_item.username
if connection_item.password is not None:
connection_element.attrib["password"] = connection_item.password
if connection_item.auth_type is not None:
connection_element.attrib["authenticationType"] = connection_item.auth_type
if connection_item.embed_password is not None:
connection_element.attrib["embedPassword"] = str(connection_item.embed_password).lower()
if connection_item.query_tagging is not None:
Expand Down