Download OpenAPI specification:Download
Versions: Tableau Server 2021.1 / Tableau Cloud March 2022 and later
This documentation describes the growing number OpenAPI endpoints being released alongside more than 150 classic REST endpoints that are currently in wide usage in the Tableau community.
There are some differences users of the classic endpoints will recognize when viewing these new endpoints.
Request bodies for these new REST endpoints must be formatted using JSON.
Endpoint URIs may contain a hyphen ('-') instead of an API version number, indicating that the resource is versioned separately from the numbered API release. For more information, see REST API and Resource Versions.
Starting in Tableau Server 2022.1 / Tableau Cloud March 2022, differences between releases will be noted in this reference.To view the previous version of this reference, see Tableau REST API OpenAPI Endpoints (v2021.4).
Enable and configure analytics extensions on sites and, for on premise installations, on servers. With these extensions you can extend Tableau dynamic calculations with languages like R and python, and with other tools and platforms. For more information, see Analytics Extensions API.
When upgrading from a server version less than 2020.2, analytics extensions must be enabled on each site even if external services were enabled on the server being upgraded. Connections for sites must be ported manually.
Using the analytics extensions settings methods you can:
Enables or disables analytics extensions on a server.
Version: Available in API 3.11 ( Tableau Server 2021.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
enabled | boolean |
{- "enabled": true
}
{- "enabled": true
}
Gets the enabled/disabled state of analytics extensions on a server.
Version: Available in API 3.11 ( Tableau Server 2021.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "enabled": true
}
Gets the enabled/disabled state of analytics extensions on a site.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: This method can only be called by users with server or site administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "enabled": true
}
Enables or disables analytics extensions on a site.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: This method can only be called by users with server or site administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
enabled | boolean |
{- "enabled": true
}
{- "enabled": true
}
Adds an analytics extensions connection for an external service to a site.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: This method can only be called by users with server or site administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
connection_luid | string |
host | string Required. The location of an external service (TabPy, Rserve, EINSTEIN_DISCOVERY, Generic API, or other) that responds to your analytics extension requests. The case sensitive value must be a URI, IPv4 or IPv6 address that is a maximum of 255 Unicode characters. Starting in Tableau Server 2022.1 / Tableau Cloud April 2022, a host address can include path information ('www.example.com/path'), where previous versions supported only the root domain name ('www.example.com'). |
port | integer <int32> Required. Integer between 1 and 65535. |
is_auth_enabled | boolean For Tableau Cloud: The value is always true. For on premise Tableau servers: Optional. Set to true if authentication is enabled on the external service. If true, username and password are required. Default is false. |
username | string For Tableau Cloud: A username is always required. |
password | string For Tableau Cloud: A password is always required. |
is_ssl_enabled | boolean For Tableau Cloud: The value is always true. For on premise Tableau servers: Optional. Set to true if authentication is enabled on the external service. If true, username and password are required. Default is false. |
object (tableau.analyticsextensions.v1.ConnectionBrief) |
{- "connection_luid": "string",
- "host": "string",
- "port": 0,
- "is_auth_enabled": true,
- "username": "string",
- "password": "string",
- "is_ssl_enabled": true,
- "connection_brief": {
- "connection_name": "string",
- "connection_type": "UNDEFINED"
}
}
{- "connectionMetadataList": [
- {
- "connection_luid": "string",
- "connection_brief": {
- "connection_name": "string",
- "connection_type": "UNDEFINED"
}
}
]
}
Lists a site's analytics extension connections for external services.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: This method can only be called by users with server or site administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "connectionMetadataList": [
- {
- "connection_luid": "string",
- "connection_brief": {
- "connection_name": "string",
- "connection_type": "UNDEFINED"
}
}
]
}
Deletes a specific analytics extension connection for an external service from a site.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: Can only be called by users with site or server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
connection_luid required | string |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "httpErrorCode": "string",
- "message": "string"
}
Get the details of a specified analytics extension connection to an external service.
Version: Available in API 3.11 (Tableau Cloud March 2021/ Server 2021.1) and later. Versioning Overview
Permissions: Can only be called by users with site or server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
connection_luid required | string |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "connection_luid": "string",
- "host": "string",
- "port": 0,
- "is_auth_enabled": true,
- "username": "string",
- "password": "string",
- "is_ssl_enabled": true,
- "connection_brief": {
- "connection_name": "string",
- "connection_type": "UNDEFINED"
}
}
Updates the details of specified analytics extension connection for an external service to a site.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: Can only be called by users with site or server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
connection_luid required | string |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
connection_luid | string |
host | string Required. The location of an external service (TabPy, Rserve, EINSTEIN_DISCOVERY, Generic API, or other) that responds to your analytics extension requests. The case sensitive value must be a URI, IPv4 or IPv6 address that is a maximum of 255 Unicode characters. Starting in Tableau Server 2022.1 / Tableau Cloud April 2022, a host address can include path information ('www.example.com/path'), where previous versions supported only the root domain name ('www.example.com'). |
port | integer <int32> Required. Integer between 1 and 65535. |
is_auth_enabled | boolean For Tableau Cloud: The value is always true. For on premise Tableau servers: Optional. Set to true if authentication is enabled on the external service. If true, username and password are required. Default is false. |
username | string For Tableau Cloud: A username is always required. |
password | string For Tableau Cloud: A password is always required. |
is_ssl_enabled | boolean For Tableau Cloud: The value is always true. For on premise Tableau servers: Optional. Set to true if authentication is enabled on the external service. If true, username and password are required. Default is false. |
object (tableau.analyticsextensions.v1.ConnectionBrief) |
{- "connection_luid": "string",
- "host": "string",
- "port": 0,
- "is_auth_enabled": true,
- "username": "string",
- "password": "string",
- "is_ssl_enabled": true,
- "connection_brief": {
- "connection_name": "string",
- "connection_type": "UNDEFINED"
}
}
{- "connection_luid": "string",
- "host": "string",
- "port": 0,
- "is_auth_enabled": true,
- "username": "string",
- "password": "string",
- "is_ssl_enabled": true,
- "connection_brief": {
- "connection_name": "string",
- "connection_type": "UNDEFINED"
}
}
Lists basic details of each analytics extension connection available for a specified workbook, including connection type and name.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: This method can be called by users that have permissions to the specified workbook. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
workbook_luid required | string |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "connectionMetadataList": [
- {
- "connection_luid": "string",
- "connection_brief": {
- "connection_name": "string",
- "connection_type": "UNDEFINED"
}
}
]
}
Gets basic details, including connection type and name, of the analytics extension connection to an external service that the specified workbook is currently using.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: This method can be called by users that have permissions to the specified workbook. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
workbook_luid required | string |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "connectionMetadataList": [
- {
- "connection_luid": "string",
- "connection_brief": {
- "connection_name": "string",
- "connection_type": "UNDEFINED"
}
}
]
}
Remove the currently used analytics extension connection to an external service from the specified workbook. The connection remains configured, and is available for further usage by the workbook.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: This method can be called by users that have permissions to the specified workbook. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
workbook_luid required | string |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "httpErrorCode": "string",
- "message": "string"
}
Updates the analytics extension connection to external service currently used by a workbook.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: This method can be called by users that have permissions to the specified workbook. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
workbook_luid required | string |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
workbook_luid | string |
connection_luid | string |
{- "workbook_luid": "string",
- "connection_luid": "string"
}
{- "workbook_luid": "string",
- "connection_luid": "string"
}
Retired in API 3.22 (Cloud February 2024 / Server 2024.2)
In February 2024, Tableau's Ask Data and Metrics features and their REST API methods will be retired in Tableau Cloud and Tableau Server version 2024.1. With advances in natural language technologies, we're developing an improved interface that will make it easier to ask questions of your data and stay on top of changes. For more information, see How Tableau GPT and Tableau Pulse are reimagining the data experience.
Ask data lenses enable you to refine the way a user's natural language query is interpreted, based on the specific audience they belong to.
For instance, you might make one lens for medical staff at a hospital, and another for administrative staff. A lens allows you to define synonyms to associate key words with common terms used for them. For instance, "SF" for "San Francisco", or "Rx" for "prescription". You can also configure recommended visualizations for each lens.
Introduced: Tableau Cloud June 2022. Not currently available for Tableau Server.
Using the Tableau REST API, you can:
- Create a lens and configure its properties
- Delete a lens
- Import an existing lens
- Get a list of lenses on a site or the details of a specified lens
Retired in API 3.22 (Cloud February 2024 / Server 2024.2)
In February 2024, Tableau's Ask Data and Metrics features and their REST API methods will be retired in Tableau Cloud and Tableau Server version 2024.1. With advances in natural language technologies, we're developing an improved interface that will make it easier to ask questions of your data and stay on top of changes. For more information, see How Tableau GPT and Tableau Pulse are reimagining the data experience.
Create an ask data lens.
Version: Available in API 3.16 ( Tableau Cloud June 2022 / Server 2022.3) and later. Versioning Overview
Permissions: This method can be called by users who have Create permissions for lenses on the site. Permissions Overview
License: No additional license required.
Access Scope: 'tableau:lenses:create'
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
name | string Required. Name of the lens . Up to 300 characters |
datasource_id | string Required. Luid of the datasource to which the lens is associated to |
project_id | string Required. Luid of the project in which lens should be created. |
description | string Optional. Description of the lens. 4000 characters maximum |
is_feedback_enabled | boolean Required. Indicates if feedback to lens author setting is enabled. |
Array of objects (tableau.nlp.lens.publicrest.v1.FieldDetail) Optional. The fields of the lens. If not specified, a lens with all the qualifying fields from the data source will be created. A lens field contains synonyms used for natural language query, to map words that might be used to mean the same thing as the name of fields or the values fields might have. |
{- "name": "string",
- "datasource_id": "string",
- "project_id": "string",
- "description": "string",
- "is_feedback_enabled": true,
- "fields": [
- {
- "graph_id": "string",
- "custom_label": "string",
- "custom_description": "string",
- "field_synonyms": [
- "string"
], - "value_synonyms": [
- {
- "value": "string",
- "synonyms": [
- "string"
]
}
]
}
]
}
{- "lens": {
- "id": "string",
- "name": "string",
- "site_id": "string",
- "datasource_id": "string",
- "project_id": "string",
- "owner_id": "string",
- "description": "string",
- "repository_url": "string",
- "is_feedback_enabled": true,
- "fields": [
- {
- "graph_id": "string",
- "custom_label": "string",
- "custom_description": "string",
- "field_synonyms": [
- "string"
], - "inherited_field_synonyms": [
- "string"
], - "value_synonyms": [
- {
- "value": "string",
- "synonyms": [
- "string"
]
}
], - "inherited_value_synonyms": [
- {
- "value": "string",
- "synonyms": [
- "string"
]
}
]
}
], - "recommended_visualization_groups": [
- {
- "name": "string",
- "description": "string",
- "recommended_visualizations": [
- {
- "expression": "string",
- "interpretation": "string",
- "colloquial_alias": "string"
}
]
}
]
}
}
Retired in API 3.22 (Cloud February 2024 / Server 2024.2)
In February 2024, Tableau's Ask Data and Metrics features and their REST API methods will be retired in Tableau Cloud and Tableau Server version 2024.1. With advances in natural language technologies, we're developing an improved interface that will make it easier to ask questions of your data and stay on top of changes. For more information, see How Tableau GPT and Tableau Pulse are reimagining the data experience.
Returns a list of ask data lenses in a site.
Version: Available in API 3.16 ( Tableau Cloud June 2022 / Server 2022.3) and later. Versioning Overview
Permissions: This method can be called by any user. Responses will include only the lenses to the user has access to. Permissions Overview
License: No additional license required.
Access Scope: 'tableau:lenses:read'
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "lenses": [
- {
- "id": "string",
- "name": "string",
- "site_id": "string",
- "datasource_id": "string",
- "project_id": "string",
- "owner_id": "string",
- "description": "string",
- "repository_url": "string"
}
]
}
Retired in API 3.22 (Cloud February 2024 / Server 2024.2)
In February 2024, Tableau's Ask Data and Metrics features and their REST API methods will be retired in Tableau Cloud and Tableau Server version 2024.1. With advances in natural language technologies, we're developing an improved interface that will make it easier to ask questions of your data and stay on top of changes. For more information, see How Tableau GPT and Tableau Pulse are reimagining the data experience.
Import an existing ask data lens on a server to a site, and optionally transform the metadata of the lens in the process.
Version: Available in API 3.16 ( Tableau Cloud June 2022 / Server 2022.3) and later. Versioning Overview
Permissions: This method can only be called by server administrators or site administrators. Permissions Overview
License: No additional license required.
Access Scope: 'tableau:lenses:create'
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
The request and response bodies for a lens import each have two parts: the first describes the attributes of the lens being imported, and the second describes transformations, which are changes to the lens metadata, to apply during import.
Use the entire response object from a request to the Get ask data lens method in your import request body.
Lens attributes that can optionally be transformed include name, data source, project, and owner. The original metadata of a lens is replaced by the transformation metadata in the new project the lens is imported to. While 'lens_transformation' is optional in an import request, a transformation definition will be needed in most cases.
Example transformation use cases
To publish a lens to a new site with modified metadata, sign in to the
new site and
include the following in your request:
''
"lens_transformations": {
"datasource_id": "
To publish a lens to a different project in the same site, while signed in to the site, use: '' "lens_transformations": { "project_id": "new project id", } ''
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
object (tableau.nlp.lens.publicrest.v1.Lens) Details of the lens to be imported. | |
object (tableau.nlp.lens.publicrest.v1.LensTransformation) Optional. The details of transformation to perform on the lens during import. |
{- "lens": {
- "id": "string",
- "name": "string",
- "site_id": "string",
- "datasource_id": "string",
- "project_id": "string",
- "owner_id": "string",
- "description": "string",
- "repository_url": "string",
- "is_feedback_enabled": true,
- "fields": [
- {
- "graph_id": "string",
- "custom_label": "string",
- "custom_description": "string",
- "field_synonyms": [
- "string"
], - "inherited_field_synonyms": [
- "string"
], - "value_synonyms": [
- {
- "value": "string",
- "synonyms": [
- "string"
]
}
], - "inherited_value_synonyms": [
- {
- "value": "string",
- "synonyms": [
- "string"
]
}
]
}
], - "recommended_visualization_groups": [
- {
- "name": "string",
- "description": "string",
- "recommended_visualizations": [
- {
- "expression": "string",
- "interpretation": "string",
- "colloquial_alias": "string"
}
]
}
]
}, - "lens_transformations": {
- "name": "string",
- "description": "string",
- "datasource_id": "string",
- "project_id": "string",
- "owner_id": "string"
}
}
{- "lens": {
- "id": "string",
- "name": "string",
- "site_id": "string",
- "datasource_id": "string",
- "project_id": "string",
- "owner_id": "string",
- "description": "string",
- "repository_url": "string",
- "is_feedback_enabled": true,
- "fields": [
- {
- "graph_id": "string",
- "custom_label": "string",
- "custom_description": "string",
- "field_synonyms": [
- "string"
], - "inherited_field_synonyms": [
- "string"
], - "value_synonyms": [
- {
- "value": "string",
- "synonyms": [
- "string"
]
}
], - "inherited_value_synonyms": [
- {
- "value": "string",
- "synonyms": [
- "string"
]
}
]
}
], - "recommended_visualization_groups": [
- {
- "name": "string",
- "description": "string",
- "recommended_visualizations": [
- {
- "expression": "string",
- "interpretation": "string",
- "colloquial_alias": "string"
}
]
}
]
}
}
Retired in API 3.22 (Cloud February 2024 / Server 2024.2)
In February 2024, Tableau's Ask Data and Metrics features and their REST API methods will be retired in Tableau Cloud and Tableau Server version 2024.1. With advances in natural language technologies, we're developing an improved interface that will make it easier to ask questions of your data and stay on top of changes. For more information, see How Tableau GPT and Tableau Pulse are reimagining the data experience.
Delete an ask data lens.
Version: Available in API 3.16 ( Tableau Cloud June 2022 / Server 2022.3) and later. Versioning Overview
Permissions: This method can be called by users with administrator and lens owner permissions. Permissions Overview
License: No additional license required.
Access Scope: 'tableau:lenses:delete'
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
lens_id required | string The LUID of the lens to be deleted. |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "lens": {
- "id": "string",
- "name": "string",
- "site_id": "string",
- "datasource_id": "string",
- "project_id": "string",
- "owner_id": "string",
- "description": "string",
- "repository_url": "string",
- "is_feedback_enabled": true,
- "fields": [
- {
- "graph_id": "string",
- "custom_label": "string",
- "custom_description": "string",
- "field_synonyms": [
- "string"
], - "inherited_field_synonyms": [
- "string"
], - "value_synonyms": [
- {
- "value": "string",
- "synonyms": [
- "string"
]
}
], - "inherited_value_synonyms": [
- {
- "value": "string",
- "synonyms": [
- "string"
]
}
]
}
], - "recommended_visualization_groups": [
- {
- "name": "string",
- "description": "string",
- "recommended_visualizations": [
- {
- "expression": "string",
- "interpretation": "string",
- "colloquial_alias": "string"
}
]
}
]
}
}
Retired in API 3.22 (Cloud February 2024 / Server 2024.2)
In February 2024, Tableau's Ask Data and Metrics features and their REST API methods will be retired in Tableau Cloud and Tableau Server version 2024.1. With advances in natural language technologies, we're developing an improved interface that will make it easier to ask questions of your data and stay on top of changes. For more information, see How Tableau GPT and Tableau Pulse are reimagining the data experience.
Get the details of the specified ask data lens.
Version: Available in API 3.16 ( Tableau Cloud June 2022 / Server 2022.3) and later. Versioning Overview
Permissions: This method can be called by users who have Read access to the lens. Permissions Overview
License: No additional license required.
Access Scope: 'tableau:lenses:read'
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
lens_id required | string The LUID of the lens. |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "lens": {
- "id": "string",
- "name": "string",
- "site_id": "string",
- "datasource_id": "string",
- "project_id": "string",
- "owner_id": "string",
- "description": "string",
- "repository_url": "string",
- "is_feedback_enabled": true,
- "fields": [
- {
- "graph_id": "string",
- "custom_label": "string",
- "custom_description": "string",
- "field_synonyms": [
- "string"
], - "inherited_field_synonyms": [
- "string"
], - "value_synonyms": [
- {
- "value": "string",
- "synonyms": [
- "string"
]
}
], - "inherited_value_synonyms": [
- {
- "value": "string",
- "synonyms": [
- "string"
]
}
]
}
], - "recommended_visualization_groups": [
- {
- "name": "string",
- "description": "string",
- "recommended_visualizations": [
- {
- "expression": "string",
- "interpretation": "string",
- "colloquial_alias": "string"
}
]
}
]
}
}
Content exploration methods enable you to view:
Search Results: Explore your Tableau content based on relevance to an provided term and filter expression.
Usage Statistics: Get the count of the number of times a user has directly or indirectly accessed a specified content item, or a batch of content items. Statistics are available for workbooks, views, data sources, flows and other Tableau resources. The response contains counts for a variety of time periods, ranging from two weeks up to the resource's lifetime.
Suggestions: Get suggestions for autocompletion as a user types, based on matches of their input. Searches across all supported content types for objects relevant to the specified term.
Gets usage statistics for multiple content items. The batch of can include multiple content types.
Version: Available in API 3.17 ( Tableau Cloud December 2022) and later. Not available for Tableau Server. Versioning Overview
Permissions: Tableau administrators can get statistics for all content they administer. Other users can get statistics for any content they own or have at least Read permissions for. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
Array of objects (tableau.usagestats.v1.ContentItemId) |
{- "content_items": [
- {
- "luid": "string",
- "type": "string"
}
]
}
{- "content_items": [
- {
- "content": {
- "luid": "string",
- "type": "string"
}, - "usage": {
- "hitsTotal": 0,
- "hitsLastTwoWeeksTotal": 0,
- "hitsLastOneMonthTotal": 0,
- "hitsLastThreeMonthsTotal": 0,
- "hitsLastTwelveMonthsTotal": 0
}
}
], - "errors": [
- {
- "httpErrorCode": 0,
- "message": "string"
}
]
}
Gets the usage statistics for a Tableau content item, specified by LUID and content type, such as workbook, datasource, or flow.
Version: Available in API 3.17 ( Tableau Cloud December 2022) and later. Not available for Tableau Server. Versioning Overview
Permissions: Tableau administrators can get statistics for all content they administer. Other users can get statistics for any content they own or have at least Read permissions for. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
type required | string The content type of the kind of resource being specified, for instance: 'workbooks', 'flows', and 'datasources'. |
luid required | string |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "hitsTotal": 0,
- "hitsLastTwoWeeksTotal": 0,
- "hitsLastOneMonthTotal": 0,
- "hitsLastThreeMonthsTotal": 0,
- "hitsLastTwelveMonthsTotal": 0
}
Searches across all supported content types for objects relevant to the search expression specified in the querystring of the request URI.
Version: Available in API 3.16 ( Tableau Cloud June 2022 / Server 2022.3) and later. Versioning Overview
Permissions: Search results will be limited to those objects that the user has permissions to access. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
For example, 'MY_SERVER/api/-/search?terms=productID' could return the Sales workbook that contains a data field named 'productID' as well as Superstore database containing a table with a column named 'productID'.
Query parameters can be combined to refine your search. For instance, the request for a search on the term "sales", for workbooks created in 2021 or later, sorted by the number of times the content has been viewed since its creation, with smallest number of views first, would look like:
'/search?terms=sales&filter=type:eq:workbook&modifiedTime:gte:2021&sort=hitsTotal:asc'
Content types returned can include:
|
|
terms | string (Optional) One or more terms the search uses as the basis for which items are relevant to return. The items may be of any supported content type. The relevance may be assessed based on any element of a given item. If no terms are supplied, then results will be based filtering and page size limits. |
page | integer <int64> (Optional) The number of the page in the list response pages to return. Maximum number of items returned is 10,000 |
limit | integer <int32> (Optional) The number of items to return on each response page. The default is 10. |
order_by | string Enum: "hitsTotal" "hitsSmallSpanTotal" "hitsMediumSpanTotal" "hitsLargeSpanTotal" "downstreamWorkbookCount"
Append ':asc' or ':desc' to determine sort direction. The default is 'asc'. Your search expression can have more than one comma separated 'order_by' element. If there is a tie between two items for the first 'order_by' expression, then sort order between the two items will be determined by the second 'order_by' expression. The following expression sorts items from the fewest views since creation and, in case of a tie, by the one that has the most recent views. '?order_by=hitsTotal:asc,hitsSmallSpanTotal:desc' |
filter | string (Optional) An expression to filter the response using one of the following parameters, or a combination of expressions separated by a comma.
2022 / Server 2022.3) and later.* or:
or 'in' operator in an expression like: 'filter=modifiedTime:gte:2022-01-11T08:00:00.000Z' or:
or 'in' operator in an expression like:
For more information about filter expressions, see Filtering and Sorting in the Tableau REST API. |
{- "next": "string",
- "prev": "string",
- "pageIndex": 0,
- "startIndex": 0,
- "total": 0,
- "limit": 0,
- "items": [
- {
- "uri": "string",
- "content": {
- "property1": { },
- "property2": { }
}
}
]
}
Returns a specified number of suggestions for auto-completion of user input as they type. You can specify content types of suggestions and prioritize recently viewed content.
Version: Available in API 3.19 ( Tableau Cloud March 2023 / Server 2023.1) and later. Versioning Overview
Permissions: Suggestions will be limited to those objects that the user has permissions to access. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
terms required | string The term that is matched to find suggestions. |
limit | integer <int32> The number of suggestions to return. The default is 10. |
recentsLuids | string A comma separated list of luids that will be prioritized in scoring of content items matched to suggest. |
filter | string A filter to restrict suggestions to specified content types. The supported operators are: 'in' and 'eq'. For instance, the parameter: 'filter:in:workbooks,datasources' would limit suggestions returned to only those for workbooks and data sources. |
{- "terms": "string",
- "filter": "string",
- "sort": "string",
- "hits": {
- "next": "string",
- "prev": "string",
- "pageIndex": 0,
- "startIndex": 0,
- "total": 0,
- "limit": 0,
- "items": [
- {
- "uri": "string",
- "content": {
- "property1": { },
- "property2": { }
}
}
]
}
}
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Enable and configure security for dashboard extensions on sites and, for on premise installations, on servers. With these extensions you can add custom features to a dashboard using JavaScript.
Using the extension methods of the Tableau Server REST API you can:
This functionality relates to the UI elements and concepts described at Manage Dashboard Settings.
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Lists the dashboard extension settings of a server.
Version: Available in API 3.11 ( Tableau Server 2021.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "block_list_items": [
- {
- "url": "string",
- "block_list_item_luid": "string"
}
], - "extensions_enabled": true
}
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Updates the settings for dashboard extensions of a server
Version: Available in API 3.11 ( Tableau Server 2021.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
Array of objects (tableau.extensions.dashboard.v1.BlockListItem) | |
extensions_enabled | boolean Specifies whether sandboxed extensions are allowed to run on the site. |
{- "block_list_items": [
- {
- "url": "string",
- "block_list_item_luid": "string"
}
], - "extensions_enabled": true
}
{- "block_list_items": [
- {
- "url": "string",
- "block_list_item_luid": "string"
}
], - "extensions_enabled": true
}
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Adds a dashboard extension to the block list of a server.
Version: Available in API 3.11 ( Tableau Server 2021.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
url | string Location of the dashboard extension to be blocked from a site. |
block_list_item_luid | string |
{- "url": "string",
- "block_list_item_luid": "string"
}
{- "url": "string",
- "block_list_item_luid": "string"
}
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Lists the dashboard extensions on the blocked list of a server.
Version: Available in API 3.11 ( Tableau Server 2021.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "block_list_items": [
- {
- "url": "string",
- "block_list_item_luid": "string"
}
]
}
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Gets the details of a specific dashboard extension on the blocked list of a server.
Version: Available in API 3.11 ( Tableau Server 2021.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
block_list_item_luid required | string |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "url": "string",
- "block_list_item_luid": "string"
}
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Deletes a specific extension from the block list of a server.
Version: Available in API 3.11 ( Tableau Server 2021.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
block_list_item_luid required | string |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "httpErrorCode": "string",
- "message": "string"
}
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Lists the dashboard extension settings of the site you are signed into.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: This method can only be called by users with server or site administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "extensions_enabled": true,
- "allow_sandboxed": true,
- "safe_list_items": [
- {
- "safe_list_item_luid": "string",
- "url": "string",
- "allow_full_data": true,
- "prompt_needed": true
}
]
}
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Updates the settings for dashboard extensions for the site you are signed into.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: This method can only be called by users with server or site administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
extensions_enabled | boolean Specifies whether extensions are allowed to run on the site. |
allow_sandboxed | boolean Specifies whether sandboxed extensions are allowed to run on the site. |
Array of objects (tableau.extensions.dashboard.v1.SafeListItem) |
{- "extensions_enabled": true,
- "allow_sandboxed": true,
- "safe_list_items": [
- {
- "safe_list_item_luid": "string",
- "url": "string",
- "allow_full_data": true,
- "prompt_needed": true
}
]
}
{- "extensions_enabled": true,
- "allow_sandboxed": true,
- "safe_list_items": [
- {
- "safe_list_item_luid": "string",
- "url": "string",
- "allow_full_data": true,
- "prompt_needed": true
}
]
}
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Adds a dashboard extension to the safe list of the site you are signed into.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: This method can only be called by users with server or site administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
safe_list_item_luid | string |
url | string Location (URL) of the dashboard extension to be allowed on a site. |
allow_full_data | boolean When true, the extension has access to underlying data of a workbook. This setting is only effective when the extension is on the site safe list. Default is false. |
prompt_needed | boolean When true, the user will be prompted to grant an extension access to the underlying data of a workbook. This setting is only effective when the extension is on the site safe list. Default is false. |
{- "safe_list_item_luid": "string",
- "url": "string",
- "allow_full_data": true,
- "prompt_needed": true
}
{- "safe_list_item_luid": "string",
- "url": "string",
- "allow_full_data": true,
- "prompt_needed": true
}
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Lists the dashboard extensions on the safe list of the site you are signed into.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: This method can only be called by users with server or site administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "safe_list_items": [
- {
- "safe_list_item_luid": "string",
- "url": "string",
- "allow_full_data": true,
- "prompt_needed": true
}
]
}
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Deletes a specific dashboard extension from the safe list of the site you are signed into.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: Can only be called by users with site or server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
safe_list_item_luid required | string |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "httpErrorCode": "string",
- "message": "string"
}
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Gets the details of a specific dashboard extension on the safe list of the site you are signed into.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: Can only be called by users with site or server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
safe_list_item_luid required | string |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "safe_list_item_luid": "string",
- "url": "string",
- "allow_full_data": true,
- "prompt_needed": true
}
Retired in API 3.21 (Cloud October 2023 / Server 2023.3)
In October 2023 Tableau Cloud and Tableau Server version 2023.3 releases, Tableau's REST API methods for dashboard extensions settings are retired. We recommend you replace dashboard extensions methods for enabling, listing, getting details of, and updating dashboard extensions with Tableau extensions settings methods that have similar functionality.
Updates the settings of a specific dashboard extension in the safe list of the site you are signed into.
Version: Available in API 3.11 (Tableau Cloud March 2021 / Server 2021.1) and later. Versioning Overview
Permissions: Can only be called by users with site or server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Cloud | Server-Windows | Server-Linux
safe_list_item_luid required | any |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
safe_list_item_luid | string |
url | string Location (URL) of the dashboard extension to be allowed on a site. |
allow_full_data | boolean When true, the extension has access to underlying data of a workbook. This setting is only effective when the extension is on the site safe list. Default is false. |
prompt_needed | boolean When true, the user will be prompted to grant an extension access to the underlying data of a workbook. This setting is only effective when the extension is on the site safe list. Default is false. |
{- "safe_list_item_luid": "string",
- "url": "string",
- "allow_full_data": true,
- "prompt_needed": true
}
{- "safe_list_item_luid": "string",
- "url": "string",
- "allow_full_data": true,
- "prompt_needed": true
}
Identity pools are an identity management tool that uses provisioning and authentication information to enable user access to Tableau Server. Identity pools enable a more centralized and flexible identity management workflow. For more information, see Provision and Authenticate Users Using Identity Pools in the Tableau Server Help.
The identity pools methods allow you to:
Provision users by creating a new local identity store instance. Note: Skip this step to use an existing local identity store or the external identity store you configured in TSM during Tableau Server setup.
Set up an authentication method to authenticate your users to Tableau Server using OpenID Connect (OIDC).
Create an identity pool that uses the identity store and authentication method you configured.
Add users to an identity pool using the Add User to Identity Pool endpoint using the Tableau REST API.
Refer to the Tableau Server Help for testing, managing, and troubleshooting identity pools.
Note: Identity pools do not replace the user provisioning and authentication configurations you made during Tableau Server setup. The purpose of identity pools is to complement and support additional user provisioning and authentication options you might need in your organization.
Before getting started with identity pools, the following requirements must be met:
Integration with an OIDC identity provider (IdP), such as Okta, is already configured
You are running Tableau Server 2023.1 or later
You have performed the identity migration if you are running Tableau Server after upgrading from version 2021.4 or earlier
You have performed the steps described at Step 1: Configure Tableau Server and establish a session in the Tableau Server Help
You can use the Identity Pools Postman collection in the Salesforce Developer's Postman workspace to learn about, develop, and test the methods described.
This functionality relates to the concepts and procedures described in the Set Up and Manage Identity Pools topic in the Tableau Server Help.
Create an instance of OpenID Connect (OIDC) authentication.
For more information, see Step 3: Set up authentication in the Tableau Server Help.
Version: Available in API 3.19 (Tableau Server 2023.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
auth_type | string Value: "OIDC" Required. Authentication type. |
iframed_idp_enabled | boolean Allows the identity provider (IdP) to authenticate inside of an iFrame. The IdP must disable clickjack protection to allow iFrame presentation. Default value is 'false'. |
object (tableau.authn.v1.OidcConfig) |
{- "auth_type": "OIDC",
- "iframed_idp_enabled": true,
- "oidc": {
- "client_id": "string",
- "client_secret": "string",
- "config_url": "string",
- "custom_scope": "string",
- "id_claim": "string",
- "username_claim": "string",
- "client_authentication": "string",
- "essential_acr_values": "string",
- "voluntary_acr_values": "string",
- "prompt": "string",
- "connection_timeout": 0,
- "read_timeout": 0,
- "ignore_domain": true,
- "ignore_jwk": true
}
}
{- "auth_configuration": {
- "id": 0,
- "created_at": "string",
- "updated_at": "string",
- "auth_type": "OIDC",
- "iframed_idp_enabled": true,
- "oidc": {
- "client_id": "string",
- "client_secret": "string",
- "config_url": "string",
- "custom_scope": "string",
- "id_claim": "string",
- "username_claim": "string",
- "client_authentication": "string",
- "essential_acr_values": "string",
- "voluntary_acr_values": "string",
- "prompt": "string",
- "connection_timeout": 0,
- "read_timeout": 0,
- "ignore_domain": true,
- "ignore_jwk": true
}
}
}
List information about all authentication instances.
Version: Available in API 3.19 (Tableau Server 2023.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "instances": [
- {
- "id": 0,
- "created_at": "string",
- "updated_at": "string",
- "auth_type": "OIDC",
- "iframed_idp_enabled": true,
- "oidc": {
- "client_id": "string",
- "client_secret": "string",
- "config_url": "string",
- "custom_scope": "string",
- "id_claim": "string",
- "username_claim": "string",
- "client_authentication": "string",
- "essential_acr_values": "string",
- "voluntary_acr_values": "string",
- "prompt": "string",
- "connection_timeout": 0,
- "read_timeout": 0,
- "ignore_domain": true,
- "ignore_jwk": true
}
}
]
}
Delete an authentication instance.
Version: Available in API 3.19 (Tableau Server 2023.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Server-Windows | Server-Linux
id required | integer <int32> Required. Authentication instance ID. |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "httpErrorCode": "string",
- "message": "string"
}
Update an authentication instance.
Note: The request body must specify all the required and desired parameters, not jus the parameters you want to update.
Version: Available in API 3.19 (Tableau Server 2023.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Server-Windows | Server-Linux
id required | integer <int32> Required. Authentication instance ID. |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
id | integer <int32> Required. Authentication instance ID. |
auth_type | string Value: "OIDC" Required. Authentication type. |
iframed_idp_enabled | boolean Allows the identity provider (IdP) to authenticate inside of an iFrame. The IdP must disable clickjack protection to allow iFrame presentation. Default value is 'false'. |
object (tableau.authn.v1.OidcConfig) |
{- "id": 0,
- "auth_type": "OIDC",
- "iframed_idp_enabled": true,
- "oidc": {
- "client_id": "string",
- "client_secret": "string",
- "config_url": "string",
- "custom_scope": "string",
- "id_claim": "string",
- "username_claim": "string",
- "client_authentication": "string",
- "essential_acr_values": "string",
- "voluntary_acr_values": "string",
- "prompt": "string",
- "connection_timeout": 0,
- "read_timeout": 0,
- "ignore_domain": true,
- "ignore_jwk": true
}
}
{- "auth_configuration": {
- "id": 0,
- "created_at": "string",
- "updated_at": "string",
- "auth_type": "OIDC",
- "iframed_idp_enabled": true,
- "oidc": {
- "client_id": "string",
- "client_secret": "string",
- "config_url": "string",
- "custom_scope": "string",
- "id_claim": "string",
- "username_claim": "string",
- "client_authentication": "string",
- "essential_acr_values": "string",
- "voluntary_acr_values": "string",
- "prompt": "string",
- "connection_timeout": 0,
- "read_timeout": 0,
- "ignore_domain": true,
- "ignore_jwk": true
}
}
}
Create an identity pool.
For more information, see Step 4: Create an identity pool in the Tableau Server Help.
Version: Available in API 3.19 (Tableau Server 2023.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
name | string Required. Identity pool name. Must be unique. This name is visible on the Tableau Server landing page when users sign in. |
identity_store_instance | integer <int32> Required. ID of the identity store instance to configure with this identity pool. |
auth_type_instance | integer <int32> Required. ID of the authentication instance to configure with this identity pool. |
is_enabled | boolean Identity pool is enabled by default. |
description | string Identity pool description displayed to users when they sign in. |
{- "name": "string",
- "identity_store_instance": 0,
- "auth_type_instance": 0,
- "is_enabled": true,
- "description": "string"
}
{- "pool": {
- "identity_pool_id": {
- "value": "string"
}, - "identity_pool_name": "string",
- "identity_store_instance_id": 0,
- "auth_type_instance_id": 0,
- "is_enabled": true,
- "created_at": "string",
- "updated_at": "string",
- "description": "string",
- "identity_store_type": "LOCAL",
- "auth_type": "OIDC"
}
}
List all identity pools.
Version: Available in API 3.19 (Tableau Server 2023.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Server-Windows | Server-Linux
{- "pools": [
- {
- "identity_pool_id": {
- "value": "string"
}, - "identity_pool_name": "string",
- "identity_store_instance_id": 0,
- "auth_type_instance_id": 0,
- "is_enabled": true,
- "created_at": "string",
- "updated_at": "string",
- "description": "string",
- "identity_store_type": "LOCAL",
- "auth_type": "OIDC"
}
]
}
Delete an identity pool.
Important: In Tableau Server, move users to
another identity pool before deleting an identity pool. Users will no longer
be able to sign in to Tableau Server unless they are a member of an identity
pool.
Version: Available in API 3.19 (Tableau Server 2023.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Server-Windows | Server-Linux
uuid required | string Required. Identity pool ID. |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "httpErrorCode": "string",
- "message": "string"
}
Get information about an identity pool.
Version: Available in API 3.19 (Tableau Server 2023.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Server-Windows | Server-Linux
uuid required | string Required. Identity pool ID. |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "pool": {
- "identity_pool_id": {
- "value": "string"
}, - "identity_pool_name": "string",
- "identity_store_instance_id": 0,
- "auth_type_instance_id": 0,
- "is_enabled": true,
- "created_at": "string",
- "updated_at": "string",
- "description": "string",
- "identity_store_type": "LOCAL",
- "auth_type": "OIDC"
}
}
Update information about an identity pool.
Version: Available in API 3.19 (Tableau Server 2023.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Server-Windows | Server-Linux
uuid required | string Required. Identity pool ID. |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
uuid | string Required. Identity pool ID. |
name | string Identity pool name. Must be unique. This name is visible on the Tableau Server landing page when users sign in. |
is_enabled | boolean Identity pool is enabled by default. |
description | string Identity pool description displayed to users when they sign in. |
{- "uuid": "string",
- "name": "string",
- "is_enabled": true,
- "description": "string"
}
{- "pool": {
- "identity_pool_id": {
- "value": "string"
}, - "identity_pool_name": "string",
- "identity_store_instance_id": 0,
- "auth_type_instance_id": 0,
- "is_enabled": true,
- "created_at": "string",
- "updated_at": "string",
- "description": "string",
- "identity_store_type": "LOCAL",
- "auth_type": "OIDC"
}
}
Configure a new local identity store to provision users.
For more information, see Step 2: Set up an identity store in the Tableau Server Help.
Note: This identity store is in addition to the identity store you configured during Tableau Server setup.
Version: Available in API 3.19 (Tableau Server 2023.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
type | string Value: "0" Required. Identity store type used to provision users. Use 0 to configure a new local identity store. Note: Configuring a new identity store of type Active Directory or LDAP is not supported. |
name | string Required. Identity store name. Must be unique. |
display_name | string Identity store display name. |
{- "type": "0",
- "name": "string",
- "display_name": "string"
}
{- "store_instance": {
- "id": 0,
- "type": "LOCAL",
- "name": "string",
- "display_name": "string",
- "created_at": "string",
- "updated_at": "string"
}
}
List information about all identity store instances used to provision users.
Version: Available in API 3.19 (Tableau Server 2023.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Server-Windows | Server-Linux
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "instances": [
- {
- "id": 0,
- "type": "LOCAL",
- "name": "string",
- "display_name": "string",
- "created_at": "string",
- "updated_at": "string"
}
]
}
Delete an identity store.
Important: You cannot delete the identity store you configured during Tableau Server setup.
Version: Available in API 3.19 (Tableau Server 2023.1) and later. Not available for Tableau Cloud. Versioning Overview
Permissions: This method can only be called by users with server administrator permissions. Permissions Overview
License: No additional license required.
Access Scope: Not available.
Access Scopes Overview: Server-Windows | Server-Linux
id required | integer <int32> Required. Identity store ID. |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "httpErrorCode": "string",
- "message": "string"
}
With Tableau Pulse, Tableau Cloud users can follow metrics and use guided exploration to understand more about their data. In addition to viewing metrics from the Tableau Pulse home page, users can receive digests via Slack or email that include insights into important changes in their data so users can stay up to date.
A metric definition specifies the metadata for all related metrics created using the definition. This includes the data source, measure, time dimension, and which data source dimensions can be filtered by users or programmatically to create related metrics.
A metric is the interactive object that users follow and receive updates on. It specifies the values to give the filterable dimensions of the metric's definition and the measurement time period of the metric.
A user who follows (has a subscription to) a metric can receive
digests via email or Slack. Digests can also be viewed in the Metrics home
page in the Tableau UI.
A digest provides summary visualizations and text describing the top
insights for a metric. It also displays links to further metric
details and to suggested follow up questions based on the metric's data
and insights.
An insight is a data-driven observation about a metric.Tableau automatically generates and ranks insights by usefulness.
An insight bundle is a collection of insights for a metric That can be configured to include various elements.
For more information and to learn about the UI features related to these methods, see Create Pulse Metrics.
You can use Pulse REST API methods to generate an insight bundle for a metric. An insight bundle request specifies the metric being analyzed, the output format (text or HTML), time frame, and additional filters for the insights in the bundle.
In the request, you configure the type of insight bundle that should be provided for a metric. Types include:
'basic' - Contains the current number, percentage, or currency value aggregated for the metric.
'springboard' - Contains period-over-period change, time series, and the top-ranked insight that exceed a "usefulness" score.
'detail' - Contains all ranked insights and follow up suggestions for a metric.
Process suggestion: Bundles are rich and complex objects that can be challenging to build manually. One approach to efficiently create the JSON for a bundle is to use the Tableau user interface to create the form of metric definition and metrics you want to produce programmatically. Then you can navigate to a metric and use your browsers' inspector to view and copy the JSON response for the insight bundle. You can use the JSON directly or as a template in your code.
Depending on the type of insight bundle you request and the shape of your data source, some or all of the following types of insights will be returned.
Value | Name | Description |
---|---|---|
popc | Period over Period Change | Shows how a metric has changed between two periods. Highlights the change between a metric value for a recent time range compared to an equivalent time range in a prior period or the past. |
riskmo | Risky Monopoly | Shows when a small number of dimension members make up a majority (50% or more) of the contribution to a metric. Shows dimensions with a concentration of very high values. A risky monopoly is a situation when a small number of dimension members make up a majority (50% or more) of the contribution to a metric. |
top-contributors | Top Contributors | Shows the highest values in a dimension for a metric within a given time range. A top contributor is a dimension member that ranks in the top N in contribution to the scoped metric’s value, aggregated on a specified time range. |
top-contributors | Bottom Contributors | Shows the lowest values in a dimension for a metric within a given time range. A bottom contributor is a dimension member that ranks in the bottom N in contribution to the scoped metric’s value, aggregated on a specified time range. |
top-drivers | Top Drivers | Shows values for dimension members that changed the most in the same direction as the observed change in the metric. Shows the values for a metric that increased the most across a specified time offset. A top driver is a dimension member that ranks in the top N in driving a change in a metric value between two separate but equivalent time ranges. Top drivers are analyzed using metric values from two separate but equivalent time ranges (such as Sales for day of October 2 versus Sales for day of October 3) to look for changes to the contributions in the same direction of the change made by dimension members. |
top-detractors | Top Detractors | Shows values for dimension members that changed the most in the opposite direction to the observed change in the metric. Shows values for a metric that are most opposed to top drivers decreased the most across a specified time offset. A top detractor is a dimension member that ranks in the bottom N in driving a change in a metric value between two separate but equivalent time ranges. This insight's values oppose the observed change the most. Top detractors are analyzed using metric values from two separate but equivalent time ranges (such as Sales for day of October 2 versus Sales for day of October 3) to look for changes to the contributions in the same direction of the change made by dimension members. |
unusualchange | Unusually High/Low Metric value | Shows unexpected changes in a metric value. Shows when the value of a metric for a given time range is higher or lower than the expected range based on historic observations of the metric. This insight highlights when the value of a metric for a given time range is higher or lower than the expected range based on historic observations of the metric. |
newtrend | New Trend Detected | Shows new trends that vary significantly from the current trend. This insight communicates the rate of change, direction, and fluctuations for the metric value. |
Metric definitions
Metrics
- Create, update, and delete metric definitions
- Get a list of metric definitions for a site
- Get a list of metrics for a metric definition
- Get a specified batch of metric definitions
Metric Insights
- Get the details of a metric
- Get a metric if it exists or create it if it doesn't
- Create, update, and delete a metric
- Get a specified batch of metrics
Metric Subscriptions
- Generate a basic insight bundle for a metric
- Generate a springboard insight bundle for a metric
- Generate a detail insight bundle for a metric
- Get the details of a subscription to a metric
- Get a list of subscriptions to a metric for a user
- Create or delete a subscription to a metric
- Update the followers of a metric
- Get a specified batch of subscriptions to a metric
- Create subscriptions for a batch of users or groups to a metric
- Get a count of followers for a specified batch of subscriptions to a metric
Creates a metric definition.
Version: Available in API 3.21 (Tableau Cloud December 2023) and later. Not available for Tableau Server. Versioning Overview
Permissions: Any user can create a metric definition as long as the user has write and publish access to the data source used in the definition. Permissions Overview
License: No additional license required.
Access Scope: tableau:insight_definitions:create
Access Scopes Overview: Cloud
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
name | string The name of the metric definition. |
description | string The description of the metric definition. |
object (tableau.metricqueryservice.types.v1.DefinitionSpecification) | |
object (tableau.metricqueryservice.types.v1.ExtensionOptions) | |
object (tableau.metricqueryservice.types.v1.RepresentationOptions) | |
object (tableau.metricqueryservice.types.v1.InsightsOptions) |
{- "name": "string",
- "description": "string",
- "specification": {
- "datasource": {
- "id": "string"
}, - "basic_specification": {
- "measure": {
- "field": "string",
- "aggregation": "AGGREGATION_UNSPECIFIED"
}, - "time_dimension": {
- "field": "string"
}, - "filters": [
- {
- "field": "string",
- "operator": "OPERATOR_UNSPECIFIED",
- "categorical_values": [
- {
- "string_value": "string",
- "bool_value": true,
- "null_value": "string"
}
]
}
]
}, - "viz_state_specification": {
- "viz_state_string": "string"
}, - "is_running_total": true
}, - "extension_options": {
- "allowed_dimensions": [
- "string"
], - "allowed_granularities": [ ],
- "items": "GRANULARITY_UNSPECIFIED",
- "offset_from_today": 0
}, - "representation_options": {
- "type": "NUMBER_FORMAT_TYPE_UNSPECIFIED",
- "number_units": {
- "singular_noun": "string",
- "plural_noun": "string"
}, - "sentiment_type": "SENTIMENT_TYPE_UNSPECIFIED",
- "row_level_id_field": {
- "identifier_col": "string",
- "identifier_label": "string"
}, - "row_level_entity_names": {
- "entity_name_singular": "string",
- "entity_name_plural": "string"
}, - "row_level_name_field": {
- "name_col": "string"
}, - "currency_code": "CURRENCY_CODE_UNSPECIFIED",
- "nestedNumberUnits": {
- "singular_noun": "string",
- "plural_noun": "string"
}, - "nestedRowLevelIDField": {
- "identifier_col": "string",
- "identifier_label": "string"
}, - "nestedRowLevelNameField": {
- "name_col": "string"
}, - "nestedRowLevelEntityNames": {
- "entity_name_singular": "string",
- "entity_name_plural": "string"
}
}, - "insights_options": {
- "settings": {
- "type": "INSIGHT_TYPE_UNSPECIFIED",
- "disabled": true
}
}
}
{- "definition": {
- "metadata": {
- "name": "string",
- "description": "string",
- "id": "string",
- "schema_version": "string",
- "definition_version": 0
}, - "specification": {
- "datasource": {
- "id": "string"
}, - "basic_specification": {
- "measure": {
- "field": "string",
- "aggregation": "AGGREGATION_UNSPECIFIED"
}, - "time_dimension": {
- "field": "string"
}, - "filters": [
- {
- "field": "string",
- "operator": "OPERATOR_UNSPECIFIED",
- "categorical_values": [
- {
- "string_value": "string",
- "bool_value": true,
- "null_value": "string"
}
]
}
]
}, - "viz_state_specification": {
- "viz_state_string": "string"
}, - "is_running_total": true
}, - "extension_options": {
- "allowed_dimensions": [
- "string"
], - "allowed_granularities": [ ],
- "items": "GRANULARITY_UNSPECIFIED",
- "offset_from_today": 0
}, - "metrics": [
- {
- "id": "string",
- "specification": {
- "filters": [
- {
- "field": "string",
- "operator": "OPERATOR_UNSPECIFIED",
- "categorical_values": [
- {
- "string_value": "string",
- "bool_value": true,
- "null_value": "string"
}
]
}
], - "measurement_period": {
- "granularity": "GRANULARITY_UNSPECIFIED",
- "range": "RANGE_UNSPECIFIED"
}, - "comparison": {
- "comparison": "TIME_COMPARISON_UNSPECIFIED"
}
}, - "definition_id": "string",
- "is_default": true,
- "schema_version": "string",
- "goals": {
- "target": {
- "value": 0
}
}, - "is_followed": true
}
], - "total_metrics": 0,
- "representation_options": {
- "type": "NUMBER_FORMAT_TYPE_UNSPECIFIED",
- "number_units": {
- "singular_noun": "string",
- "plural_noun": "string"
}, - "sentiment_type": "SENTIMENT_TYPE_UNSPECIFIED",
- "row_level_id_field": {
- "identifier_col": "string",
- "identifier_label": "string"
}, - "row_level_entity_names": {
- "entity_name_singular": "string",
- "entity_name_plural": "string"
}, - "row_level_name_field": {
- "name_col": "string"
}, - "currency_code": "CURRENCY_CODE_UNSPECIFIED",
- "nestedNumberUnits": {
- "singular_noun": "string",
- "plural_noun": "string"
}, - "nestedRowLevelIDField": {
- "identifier_col": "string",
- "identifier_label": "string"
}, - "nestedRowLevelNameField": {
- "name_col": "string"
}, - "nestedRowLevelEntityNames": {
- "entity_name_singular": "string",
- "entity_name_plural": "string"
}
}, - "insights_options": {
- "settings": {
- "type": "INSIGHT_TYPE_UNSPECIFIED",
- "disabled": true
}
}
}
}
Lists the metric definitions configured for a site or, optionally, the details and definition for a specific metric.
Version: Available in API 3.21 (Tableau Cloud December 2023) and later. Not available for Tableau Server. Versioning Overview
Permissions: Can be called by any user, but only returns definitions and metrics that the user has permissions to view. Permissions Overview
License: No additional license required.
Access Scope: tableau:insight_definitions_metrics:read
Access Scopes Overview: Cloud
order_by | string |
view | string Enum: "DEFINITION_VIEW_UNSPECIFIED" "DEFINITION_VIEW_BASIC" "DEFINITION_VIEW_FULL" "DEFINITION_VIEW_DEFAULT" The range of metrics to return for a definition. The default is 'DEFINITION_VIEW_BASIC' if not specified.
|
number_of_metrics | integer <int64> (Required if 'view' is 'DEFINITION_VIEW_FULL') The number of metrics to return. |
page_size | integer <int32> Specifies the number of results in a paged response. Example:
Combining Path Parameters: A page_size expression can be combined with other path parameters using an ampersand (&) as a separator, and is typically used along with a page number expression. |
metric_id | string If a metric LUID is specified, only return the definition that is related to the metric, and the details of the metric. |
page_token | string Specifies the page of items to be returned from a requested list. The value of 'page_token' for the next page of returns is found in the 'next_page_token' of the current response. If there are no further items to return, the value of 'next_page_token' will be empty. Example:
Combining Path Parameters: A page_token expression can be combined with other path parameters using an ampersand (&) as a separator, and is typically used along with a page number expression. |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "definitions": [
- {
- "metadata": {
- "name": "string",
- "description": "string",
- "id": "string",
- "schema_version": "string",
- "definition_version": 0
}, - "specification": {
- "datasource": {
- "id": "string"
}, - "basic_specification": {
- "measure": {
- "field": "string",
- "aggregation": "AGGREGATION_UNSPECIFIED"
}, - "time_dimension": {
- "field": "string"
}, - "filters": [
- {
- "field": "string",
- "operator": "OPERATOR_UNSPECIFIED",
- "categorical_values": [
- {
- "string_value": "string",
- "bool_value": true,
- "null_value": "string"
}
]
}
]
}, - "viz_state_specification": {
- "viz_state_string": "string"
}, - "is_running_total": true
}, - "extension_options": {
- "allowed_dimensions": [
- "string"
], - "allowed_granularities": [ ],
- "items": "GRANULARITY_UNSPECIFIED",
- "offset_from_today": 0
}, - "metrics": [
- {
- "id": "string",
- "specification": {
- "filters": [
- {
- "field": "string",
- "operator": "OPERATOR_UNSPECIFIED",
- "categorical_values": [
- {
- "string_value": null,
- "bool_value": null,
- "null_value": null
}
]
}
], - "measurement_period": {
- "granularity": "GRANULARITY_UNSPECIFIED",
- "range": "RANGE_UNSPECIFIED"
}, - "comparison": {
- "comparison": "TIME_COMPARISON_UNSPECIFIED"
}
}, - "definition_id": "string",
- "is_default": true,
- "schema_version": "string",
- "goals": {
- "target": {
- "value": 0
}
}, - "is_followed": true
}
], - "total_metrics": 0,
- "representation_options": {
- "type": "NUMBER_FORMAT_TYPE_UNSPECIFIED",
- "number_units": {
- "singular_noun": "string",
- "plural_noun": "string"
}, - "sentiment_type": "SENTIMENT_TYPE_UNSPECIFIED",
- "row_level_id_field": {
- "identifier_col": "string",
- "identifier_label": "string"
}, - "row_level_entity_names": {
- "entity_name_singular": "string",
- "entity_name_plural": "string"
}, - "row_level_name_field": {
- "name_col": "string"
}, - "currency_code": "CURRENCY_CODE_UNSPECIFIED",
- "nestedNumberUnits": {
- "singular_noun": "string",
- "plural_noun": "string"
}, - "nestedRowLevelIDField": {
- "identifier_col": "string",
- "identifier_label": "string"
}, - "nestedRowLevelNameField": {
- "name_col": "string"
}, - "nestedRowLevelEntityNames": {
- "entity_name_singular": "string",
- "entity_name_plural": "string"
}
}, - "insights_options": {
- "settings": {
- "type": "INSIGHT_TYPE_UNSPECIFIED",
- "disabled": true
}
}
}
], - "next_page_token": "string",
- "total_available": 0,
- "offset": 0
}
Deletes a metric definition.
When a definition is deleted, all metrics related to it, and all subscriptions to those metrics are also deleted.
Version: Available in API 3.21 (Tableau Cloud December 2023) and later. Not available for Tableau Server. Versioning Overview
Permissions: Any user can delete a metric definition as long as the user has write and publish access to the data source used in the definition. Permissions Overview
License: No additional license required.
Access Scope: tableau:insight_definitions:delete
Access Scopes Overview: Cloud
definition_id | string (Required) The LUID of the metric definition. |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
Gets a metric definition and optionally metrics it contains.
Version: Available in API 3.21 (Tableau Cloud December 2023) and later. Not available for Tableau Server. Versioning Overview
Permissions: Can be called by any user, but only returns definitions and metrics that the user has permissions to view. Permissions Overview
License: No additional license required.
Access Scope: tableau:insight_definitions_metrics:read
Access Scopes Overview: Cloud
definition_id | string (Required) The LUID of the metric definition. |
view | string Enum: "DEFINITION_VIEW_UNSPECIFIED" "DEFINITION_VIEW_BASIC" "DEFINITION_VIEW_FULL" "DEFINITION_VIEW_DEFAULT" The range of metrics to return for a definition. The default is 'DEFINITION_VIEW_BASIC' if not specified.
|
number_of_metrics | integer <int64> (Required if 'view' is 'DEFINITION_VIEW_FULL') The number of metrics to return. |
X-Tableau-Auth | string The Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request. The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource. |
{- "definition": {
- "metadata": {
- "name": "string",
- "description": "string",
- "id": "string",
- "schema_version": "string",
- "definition_version": 0
}, - "specification": {
- "datasource": {
- "id": "string"
}, - "basic_specification": {
- "measure": {
- "field": "string",
- "aggregation": "AGGREGATION_UNSPECIFIED"
}, - "time_dimension": {
- "field": "string"
}, - "filters": [
- {
- "field": "string",
- "operator": "OPERATOR_UNSPECIFIED",
- "categorical_values": [
- {
- "string_value": "string",
- "bool_value": true,
- "null_value": "string"
}
]
}
]
}, - "viz_state_specification": {
- "viz_state_string": "string"
}, - "is_running_total": true
}, - "extension_options": {
- "allowed_dimensions": [
- "string"
], - "allowed_granularities": [ ],
- "items": "GRANULARITY_UNSPECIFIED",
- "offset_from_today": 0