Batch create subscriptions (Cloud-only)

POST {{baseUrl}}/api/-/pulse/subscriptions:batchCreate

Creates multiple subscriptions to a metric for specified users and/or groups.

Version: Available in API 3.21 (Tableau Cloud December 2023) and later. Not available for Tableau Server. Versioning Overview

Permissions: Any user that has read or connect permission to the data source used in the definition can create subscriptions. Permissions Overview

License: No additional license required.

Access Scope: tableau:metric_subscriptions:create
Access Scopes Overview: Cloud

Request Body

{"metric_id"=>"<string>", "followers"=>[{"user_id"=>"<string>", "group_id"=>"<string>"}, {"user_id"=>"<string>", "group_id"=>"<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;subscriptions&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metric_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;follower&quot;:{&quot;user_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;group_id&quot;:&quot;\u003cstring\u003e&quot;},&quot;create_time&quot;:&quot;\u003cstring\u003e&quot;,&quot;update_time&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metric_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;follower&quot;:{&quot;user_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;group_id&quot;:&quot;\u003cstring\u003e&quot;},&quot;create_time&quot;:&quot;\u003cstring\u003e&quot;,&quot;update_time&quot;:&quot;\u003cstring\u003e&quot;}]}