8000 Update api-ref.md · SnarkyPapi/server-client-python@f4bcafe · GitHub
[go: up one dir, main page]

Skip to content

Commit f4bcafe

Browse files
author
Irwin Dolobowsky
authored
Update api-ref.md
Updating datasource.update to be an update to ownerID instead of name as data sources can't be renamed. Also added a note that name cannot be changed in teh description.
1 parent 8ab1345 commit f4bcafe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api-ref.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ The `DatasourceItem` for the data source that was added or appended to.
570570
datasource.update(datasource_item)
571571
```
572572

573-
Updates the owner, or project of the specified data source.
573+
Updates the owner or project of the specified data source. Data source name cannot be updated.
574574

575575
REST API: [Update Datasource](https://onlinehelp.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref.htm#update_data_source){:target="_blank"}
576576

@@ -605,7 +605,7 @@ An updated `DatasourceItem`.
605605
datasource = server.datasources.get_by_id('1a2a3b4b-5c6c-7d8d-9e0e-1f2f3a4a5b6b')
606606

607607
# do some updating
608-
datasource.name = 'New Name'
608+
datasource.owner_id = 'New Owner ID'
609609

610610
# call the update method with the data source item
611611
updated_datasource = server.datasources.update(datasource)

0 commit comments

Comments
 (0)
0