Generate current metric value insight bundle

POST {{baseUrl}}/api/-/pulse/insights/ban

Generates a bundle the current aggregated value for each metric.

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 in a definition as long as the user has read or connect access to the data source used in the definition. Permissions Overview

License: No additional license required.

Access Scope: tableau:insights:read
Access Scopes Overview: Cloud

Request Body

{"bundle_request"=>{"version"=>"<integer>", "options"=>{"output_format"=>"OUTPUT_FORMAT_HTML", "now"=>"<string>", "time_zone"=>"<string>"}, "input"=>{"metadata"=>{"name"=>"<string>", "metric_id"=>"<string>", "definition_id"=>"<string>"}, "metric"=>{"definition"=>{"datasource"=>{"id"=>"<string>"}, "basic_specification"=>{"measure"=>{"field"=>"<string>", "aggregation"=>"AGGREGATION_MIN"}, "time_dimension"=>{"field"=>"<string>"}, "filters"=>[{"field"=>"<string>", "operator"=>"OPERATOR_NOT_EQUAL", "categorical_values"=>[{"string_value"=>"<string>", "bool_value"=>"<boolean>", "null_value"=>"<string>"}, {"string_value"=>"<string>", "bool_value"=>"<boolean>", "null_value"=>"<string>"}]}, {"field"=>"<string>", "operator"=>"OPERATOR_EQUAL", "categorical_values"=>[{"string_value"=>"<string>", "bool_value"=>"<boolean>", "null_value"=>"<string>"}, {"string_value"=>"<string>", "bool_value"=>"<boolean>", "null_value"=>"<string>"}]}]}, "viz_state_specification"=>{"viz_state_string"=>"<string>"}, "is_running_total"=>"<boolean>"}, "metric_specification"=>{"filters"=>[{"field"=>"<string>", "operator"=>"OPERATOR_UNSPECIFIED", "categorical_values"=>[{"string_value"=>"<string>", "bool_value"=>"<boolean>", "null_value"=>"<string>"}, {"string_value"=>"<string>", "bool_value"=>"<boolean>", "null_value"=>"<string>"}]}, {"field"=>"<string>", "operator"=>"OPERATOR_UNSPECIFIED", "categorical_values"=>[{"string_value"=>"<string>", "bool_value"=>"<boolean>", "null_value"=>"<string>"}, {"string_value"=>"<string>", "bool_value"=>"<boolean>", "null_value"=>"<string>"}]}], "measurement_period"=>{"granularity"=>"GRANULARITY_BY_WEEK", "range"=>"RANGE_LAST_COMPLETE"}, "comparison"=>{"comparison"=>"TIME_COMPARISON_PREVIOUS_PERIOD"}}, "extension_options"=>{"allowed_dimensions"=>["<string>", "<string>"], "allowed_granularities"=>["GRANULARITY_BY_YEAR", "GRANULARITY_BY_DAY"]}, "representation_options"=>{"type"=>"NUMBER_FORMAT_TYPE_CURRENCY", "number_units"=>{"singular_noun"=>"<string>", "plural_noun"=>"<string>"}, "sentiment_type"=>"SENTIMENT_TYPE_UP_IS_GOOD", "row_level_id_field"=>{"identifier_col"=>"<string>", "identifier_label"=>"<string>"}, "row_level_entity_names"=>{"entity_name_singular"=>"<string>", "entity_name_plural"=>"<string>"}}, "insights_options"=>{"settings"=>[{"type"=>"INSIGHT_TYPE_TOP_DETRACTORS", "disabled"=>"<boolean>"}, {"type"=>"INSIGHT_TYPE_BOTTOM_CONTRIBUTORS", "disabled"=>"<boolean>"}]}}}}}

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;bundle_response&quot;:{&quot;result&quot;:{&quot;insight_groups&quot;:[{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;insights&quot;:[{&quot;result&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;version&quot;:&quot;\u003cinteger\u003e&quot;,&quot;markup&quot;:&quot;\u003cstring\u003e&quot;,&quot;viz&quot;:{&quot;fields&quot;:{&quot;aliquip_d_&quot;:{}}},&quot;facts&quot;:{&quot;fields&quot;:{&quot;laborum8a&quot;:{}}},&quot;characterization&quot;:&quot;CHARACTERIZATION_UNUSUAL&quot;,&quot;question&quot;:&quot;\u003cstring\u003e&quot;,&quot;score&quot;:&quot;\u003cnumber\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;},&quot;error&quot;:{&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;}},{&quot;result&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;version&quot;:&quot;\u003cinteger\u003e&quot;,&quot;markup&quot;:&quot;\u003cstring\u003e&quot;,&quot;viz&quot;:{&quot;fields&quot;:{&quot;laborisd3&quot;:{},&quot;officiaa3&quot;:{},&quot;mollit2b&quot;:{}}},&quot;facts&quot;:{&quot;fields&quot;:{&quot;culpaeb&quot;:{},&quot;ut5_&quot;:{},&quot;commodo_2&quot;:{},&quot;sint1&quot;:{}}},&quot;characterization&quot;:&quot;CHARACTERIZATION_NORMAL&quot;,&quot;question&quot;:&quot;\u003cstring\u003e&quot;,&quot;score&quot;:&quot;\u003cnumber\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;},&quot;error&quot;:{&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;}}],&quot;summaries&quot;:[{&quot;result&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;markup&quot;:&quot;\u003cstring\u003e&quot;,&quot;viz&quot;:{&quot;fields&quot;:{&quot;Ut64&quot;:{}}},&quot;generation_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;timestamp&quot;:&quot;\u003cstring\u003e&quot;,&quot;last_attempted_timestamp&quot;:&quot;\u003cstring\u003e&quot;},&quot;error&quot;:{&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;}},{&quot;result&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;markup&quot;:&quot;\u003cstring\u003e&quot;,&quot;viz&quot;:{&quot;fields&quot;:{&quot;enim14&quot;:{}}},&quot;generation_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;timestamp&quot;:&quot;\u003cstring\u003e&quot;,&quot;last_attempted_timestamp&quot;:&quot;\u003cstring\u003e&quot;},&quot;error&quot;:{&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;}}]},{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;insights&quot;:[{&quot;result&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;version&quot;:&quot;\u003cinteger\u003e&quot;,&quot;markup&quot;:&quot;\u003cstring\u003e&quot;,&quot;viz&quot;:{&quot;fields&quot;:{&quot;consectetur3_&quot;:{},&quot;fugiat6ea&quot;:{}}},&quot;facts&quot;:{&quot;fields&quot;:{&quot;aute_26f&quot;:{}}},&quot;characterization&quot;:&quot;CHARACTERIZATION_NORMAL&quot;,&quot;question&quot;:&quot;\u003cstring\u003e&quot;,&quot;score&quot;:&quot;\u003cnumber\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;},&quot;error&quot;:{&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;}},{&quot;result&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;version&quot;:&quot;\u003cinteger\u003e&quot;,&quot;markup&quot;:&quot;\u003cstring\u003e&quot;,&quot;viz&quot;:{&quot;fields&quot;:{&quot;adipisicing3&quot;:{},&quot;fugiat_f&quot;:{}}},&quot;facts&quot;:{&quot;fields&quot;:{&quot;aliqua_39&quot;:{}}},&quot;characterization&quot;:&quot;CHARACTERIZATION_UNSPECIFIED&quot;,&quot;question&quot;:&quot;\u003cstring\u003e&quot;,&quot;score&quot;:&quot;\u003cnumber\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;},&quot;error&quot;:{&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;}}],&quot;summaries&quot;:[{&quot;result&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;markup&quot;:&quot;\u003cstring\u003e&quot;,&quot;viz&quot;:{&quot;fields&quot;:{&quot;laborum_d7d&quot;:{},&quot;irured&quot;:{}}},&quot;generation_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;timestamp&quot;:&quot;\u003cstring\u003e&quot;,&quot;last_attempted_timestamp&quot;:&quot;\u003cstring\u003e&quot;},&quot;error&quot;:{&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;}},{&quot;result&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;markup&quot;:&quot;\u003cstring\u003e&quot;,&quot;viz&quot;:{&quot;fields&quot;:{&quot;voluptate066&quot;:{},&quot;in28&quot;:{}}},&quot;generation_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;timestamp&quot;:&quot;\u003cstring\u003e&quot;,&quot;last_attempted_timestamp&quot;:&quot;\u003cstring\u003e&quot;},&quot;error&quot;:{&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;}}]}],&quot;has_errors&quot;:&quot;\u003cboolean\u003e&quot;,&quot;characterization&quot;:&quot;CHARACTERIZATION_UNUSUAL&quot;},&quot;error&quot;:{&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;}}}