Skip to content

Add support for renaming of datasource in update method #841

Closed

Description

@annematronic

This will enable renaming a datasource, which will be supported in a future release of Tableau. I believe the library just needs to be updated to pass the name attribute to the request payload.

This will require update to request_factory, tests, and api documentation (https://tableau.github.io/server-client-python/docs/api-ref#datasourcesupdate)

Activity

  1. github-actions commented on Aug 6, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If this is still relevant, please comment to keep it open.

  2. jacalata commented on Aug 16, 2026

    @jacalata
    Contributor

    Closing -- this is already supported. server.datasources.update(datasource_item) emits the name attribute on the payload when it is set on the DatasourceItem.

    See tableauserverclient/server/request_factory.py:207 (DatasourceRequest.update_req):

    if datasource_item.name:
        datasource_element.attrib["name"] = datasource_item.name

    Usage:

    ds = server.datasources.get_by_id(datasource_id)
    ds.name = "new name"
    server.datasources.update(ds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions