Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 45 additions & 1 deletion docs/api-ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -3245,6 +3245,50 @@ for view in TSC.Pager(server.views):
See [ViewItem class](#viewitem-class)


<br>
<br>

#### views.get_by_id
```
views.get_by_id(view_id)
```

Returns the details of a specific view.


REST API: [Get View](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref.htm#get_view)

**Version**

This endpoint is available REST API version 3.1 and up.

**Parameters**

Name | Description
:--- | :---
`view_id` | The ID of the view to retrieve.



**Returns**

Returns a single `ViewItem` object.

**Example**

```py
import tableauserverclient as TSC
tableau_auth = TSC.TableauAuth('username', 'password')
server = TSC.Server('https://servername')

with server.auth.sign_in(tableau_auth):
view = server.view.get_by_id('d79634e1-6063-4ec9-95ff-50acbf609ff5')
print(view.name)
```

See [ViewItem class](#viewitem-class)


<br>
<br>

Expand Down Expand Up @@ -3347,7 +3391,7 @@ See [ViewItem class](#viewitem-class)

#### views.populate_csv
```
views.populate_csv(view_item)
views.populate_csv(view_item, req_options=None)
```

Populates the CSV data of the specified view.
Expand Down