List ask data lenses in site - Retired in API 3.22

GET {{baseUrl}}/api/-/askdata/lenses


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

HEADERS

KeyDatatypeRequiredDescription
X-Tableau-AuthstringThe 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.
Acceptstring

RESPONSES

status: OK

{"lenses":[{"id":"\u003cstring\u003e","name":"\u003cstring\u003e","site_id":"\u003cstring\u003e","datasource_id":"\u003cstring\u003e","project_id":"\u003cstring\u003e","owner_id":"\u003cstring\u003e","description":"\u003cstring\u003e","repository_url":"\u003cstring\u003e"},{"id":"\u003cstring\u003e","name":"\u003cstring\u003e","site_id":"\u003cstring\u003e","datasource_id":"\u003cstring\u003e","project_id":"\u003cstring\u003e","owner_id":"\u003cstring\u003e","description":"\u003cstring\u003e","repository_url":"\u003cstring\u003e"}]}