Get batch content usage statistics (Cloud-only)
POST {{baseUrl}}/api/-/content/usage-stats
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
Request Body
{"content_items"=>[{"luid"=>"<string>", "type"=>"<string>"}, {"luid"=>"<string>", "type"=>"<string>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
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. | |||
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"content_items":[{"content":{"luid":"\u003cstring\u003e","type":"\u003cstring\u003e"},"usage":{"hitsTotal":"\u003clong\u003e","hitsLastTwoWeeksTotal":"\u003clong\u003e","hitsLastOneMonthTotal":"\u003clong\u003e","hitsLastThreeMonthsTotal":"\u003clong\u003e","hitsLastTwelveMonthsTotal":"\u003clong\u003e"}},{"content":{"luid":"\u003cstring\u003e","type":"\u003cstring\u003e"},"usage":{"hitsTotal":"\u003clong\u003e","hitsLastTwoWeeksTotal":"\u003clong\u003e","hitsLastOneMonthTotal":"\u003clong\u003e","hitsLastThreeMonthsTotal":"\u003clong\u003e","hitsLastTwelveMonthsTotal":"\u003clong\u003e"}}],"errors":[{"httpErrorCode":"\u003cinteger\u003e","message":"\u003cstring\u003e"},{"httpErrorCode":"\u003cinteger\u003e","message":"\u003cstring\u003e"}]}