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

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.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;content_items&quot;:[{&quot;content&quot;:{&quot;luid&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;},&quot;usage&quot;:{&quot;hitsTotal&quot;:&quot;\u003clong\u003e&quot;,&quot;hitsLastTwoWeeksTotal&quot;:&quot;\u003clong\u003e&quot;,&quot;hitsLastOneMonthTotal&quot;:&quot;\u003clong\u003e&quot;,&quot;hitsLastThreeMonthsTotal&quot;:&quot;\u003clong\u003e&quot;,&quot;hitsLastTwelveMonthsTotal&quot;:&quot;\u003clong\u003e&quot;}},{&quot;content&quot;:{&quot;luid&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;},&quot;usage&quot;:{&quot;hitsTotal&quot;:&quot;\u003clong\u003e&quot;,&quot;hitsLastTwoWeeksTotal&quot;:&quot;\u003clong\u003e&quot;,&quot;hitsLastOneMonthTotal&quot;:&quot;\u003clong\u003e&quot;,&quot;hitsLastThreeMonthsTotal&quot;:&quot;\u003clong\u003e&quot;,&quot;hitsLastTwelveMonthsTotal&quot;:&quot;\u003clong\u003e&quot;}}],&quot;errors&quot;:[{&quot;httpErrorCode&quot;:&quot;\u003cinteger\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;},{&quot;httpErrorCode&quot;:&quot;\u003cinteger\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;}]}