File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -570,7 +570,7 @@ The `DatasourceItem` for the data source that was added or appended to.
570
570
datasource.update(datasource_item)
571
571
```
572
572
573
- Updates the owne
84CD
r, or project of the specified data source.
573
+ Updates the owner or project of the specified data source. Data source name cannot be updated.
574
574
575
575
REST API: [ Update Datasource] ( https://onlinehelp.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref.htm#update_data_source ) {: target ="_ blank"}
576
576
@@ -605,7 +605,7 @@ An updated `DatasourceItem`.
605
605
datasource = server.datasources.get_by_id(' 1a2a3b4b-5c6c-7d8d-9e0e-1f2f3a4a5b6b' )
606
606
607
607
# do some updating
608
- datasource.name = ' New Name '
608
+ datasource.owner_id = ' New Owner ID '
609
609
610
610
# call the update method with the data source item
611
611
updated_datasource = server.datasources.update(datasource)
You can’t perform that action at this time.
0 commit comments