Skip to content
Open
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
102 changes: 33 additions & 69 deletions docs/api-ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -1216,10 +1216,10 @@ An updated `DatasourceItem`.
<br>
<br>

#### datasource.update_connection
#### datasources.update_connection

```py
datasource.update_connection(datasource_item, connection_item)
datasources.update_connection(datasource_item, connection_item)
```

Updates the server address, port, username, or password for the specified data source connection.
Expand Down Expand Up @@ -1247,10 +1247,10 @@ See the `update_connection.py` sample in the Samples directory.
<br>
<br>

#### datasource.update_hyper_data
#### datasources.update_hyper_data

```py
datasource.update_hyper_data(datasource_or_connection_item, *, request_id, actions, payload=None)
datasources.update_hyper_data(datasource_or_connection_item, *, request_id, actions, payload=None)
```

Updates the data contained within a published live-to-Hyper datasource.
Expand Down Expand Up @@ -4032,10 +4032,10 @@ Source file: server/endpoint/groupsets_endpoint.py
<br>
<br>

#### groupsets.get
#### group_sets.get

```py
groupsets.get(req_options=None, result_level=None)
group_sets.get(req_options=None, result_level=None)
```

Returns information about the group sets on the specified site.
Expand Down Expand Up @@ -4068,10 +4068,10 @@ for groupset in all_groupsets:
<br>
<br>

#### groupsets.get_by_id
#### group_sets.get_by_id

```py
groupsets.get_by_id(groupset_id)
group_sets.get_by_id(groupset_id)
```

Returns information about the specified group set.
Expand Down Expand Up @@ -4102,10 +4102,10 @@ print(groupset.name)
<br>
<br>

#### groupsets.create
#### group_sets.create

```py
groupsets.create(groupset_item)
group_sets.create(groupset_item)
```

Creates a new group set on the specified site.
Expand Down Expand Up @@ -4137,10 +4137,10 @@ print(created_groupset.id)
<br>
<br>

#### groupsets.update
#### group_sets.update

```py
groupsets.update(groupset_item)
group_sets.update(groupset_item)
```

Modifies an existing group set. You can use this method to rename a group set.
Expand Down Expand Up @@ -4171,10 +4171,10 @@ updated_groupset = server.groupsets.update(groupset)
<br>
<br>

#### groupsets.delete
#### group_sets.delete

```py
groupsets.delete(groupset)
group_sets.delete(groupset)
```

Deletes the specified group set from the site.
Expand Down Expand Up @@ -4204,10 +4204,10 @@ server.groupsets.delete(groupset.id)
<br>
<br>

#### groupsets.add_group
#### group_sets.add_group

```py
groupsets.add_group(groupset_item, group)
group_sets.add_group(groupset_item, group)
```

Adds a group to the specified group set.
Expand Down Expand Up @@ -4241,10 +4241,10 @@ server.groupsets.add_group(groupset, mygroup)
<br>
<br>

#### groupsets.remove_group
#### group_sets.remove_group

```py
groupsets.remove_group(groupset_item, group)
group_sets.remove_group(groupset_item, group)
```

Removes a group from the specified group set.
Expand Down Expand Up @@ -4275,10 +4275,10 @@ server.groupsets.remove_group(groupset, mygroup)
<br>
<br>

#### groupsets.filter
#### group_sets.filter

```py
groupsets.filter(**kwargs)
group_sets.filter(**kwargs)
```

Returns a list of group sets that match the specified filters. Fields and operators are passed as keyword arguments in the form `field_name=value` or `field_name__operator=value`.
Expand Down Expand Up @@ -7099,10 +7099,10 @@ Source files: server/endpoints/subscriptions_endpoint.py
<br>
<br>

#### subscription.create
#### subscriptions.create

```py
subscription.create(subscription_item)
subscriptions.create(subscription_item)
```
Creates a subscription to a view or workbook for a specific user on a specific schedule.
When a user is subscribed to the content, Tableau Server sends the content to the user in email on the schedule that's defined on Tableau Server and specified in the `subscription_item`.
Expand Down Expand Up @@ -7207,10 +7207,10 @@ Error | Description
<br>
<br>

#### subscription.get
#### subscriptions.get

```py
subscription.get(req_options=None)
subscriptions.get(req_options=None)
```
Returns information about the subscriptions on the specified site.

Expand All @@ -7231,11 +7231,11 @@ Returns a list of `SubscriptionItem` objects and a `PaginationItem` object. Use
<br>
<br>

#### subscription.get_by_id
#### subscriptions.get_by_id


```py
subscription.get_by_id(subscription_id)
subscriptions.get_by_id(subscription_id)
```

Returns information about the specified subscription.
Expand Down Expand Up @@ -7274,10 +7274,10 @@ The `SubscriptionItem`. See [SubscriptionItem class](#subscriptionitem-class)
<br>
<br>

#### subscription.update
#### subscriptions.update

```py
subscription.update(subscription_item)
subscriptions.update(subscription_item)
```
Updates a specific subscription. To update a subscription, you must first query it from server using the `subscriptions.get()` or `subscriptions.get_by_id()` method.

Expand Down Expand Up @@ -9527,7 +9527,7 @@ Source file: server/endpoint/webhooks_endpoint.py
<br>
<br>

#### webhook.create
#### webhooks.create
```py
webhooks.create(webhook_item)

Expand Down Expand Up @@ -9570,43 +9570,7 @@ Returns the new webhook item.
<br>
<br>

### webhook.delete
```py
webhooks.delete(webhook_id)
```

Deletes a webhook by ID.

To specify the site, create a `TableauAuth` instance using the content URL for the site `(site_id)` and sign in to the site. For more information on how to specify a site, see the [TableauAuth class](#tableauauth-class).

REST API: [Delete Webhook](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_notifications.htm#delete_webhook)

**Parameters**

Name|Description
:---|:---
`webhook_id`| The ID of the webhook to delete.

**Exceptions**

Error|Description
:---|:---
`Webhook ID undefined`| Raises an exception if a `webhook_id` is not provided.

**Example**
```py
# import tableauserverclient as TSC
# server = TSC.Server('https://SERVER')
# sign in . For authentication examples, see https://github.com/tableau/server-client-python/blob/master/samples/login.py

# Delete the webhook
with server.auth.sign_in(tableau_auth):
server.webhooks.delete('7d60d364-b9f5-4a9c-8aa5-4bdaa38c5dd3')
```
<br>
<br>

#### webhook.get()
#### webhooks.get()
```py
webhooks.get()
```
Expand Down Expand Up @@ -9642,7 +9606,7 @@ print(["Webhook Name:"+ webhook.name+ ";" + "ID:" + webhook.id for webhook in al

```

#### webhook.get_by_id
#### webhooks.get_by_id

```py
webhooks.get_by_ide(webhook_id)
Expand Down Expand Up @@ -9681,7 +9645,7 @@ print (webhook.name, webhook.url)
<br>
<br>

#### webhook.delete
#### webhooks.delete

```py
webhooks.delete(webhook_id)
Expand Down Expand Up @@ -9710,7 +9674,7 @@ server.webhooks.delete('7d60d364-b9f5-4a9c-8aa5-4bdaa38c5dd3')
<br>
<br>

#### webhook.test
#### webhooks.test

```py
webhooks.test(webhook_id)
Expand Down