Create Dashboard Item

Creates a new dashboard item while assigning it to a dashboard
:return: DashboardItem

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Creates a dashboard item, a widget that displays one query in one visualization, and assigns it to a dashboard. You set the query type, the data source, the data configuration, and the visualization type.

When to use it

Use it to add a widget to a dashboard from code. Create the dashboard first with Create a dashboard.

Required parameters

  • name (body): the name of the item.
  • query_type (body): the kind of query: raw_data, statistics, time_series, or distribution.
  • datasource (body): where the data comes from: datasets or events.
  • data_config (body): the query configuration: a general query, or a comparison of two distributions.
  • dashboard_id (body): the ID of the dashboard the item belongs to.
  • item_metadata (body): a JSON object of item metadata.
  • visualization_type (body): how the item is drawn: table, line_graph, bar_plot, time_series, histogram, or query_value.

Response

A successful call returns 201 Created with the new DashboardItem object, including its id, dashboard_id, query type, data source, and data configuration.

Related: Get a dashboard item, Update a dashboard item, List dashboard items, Create a dashboard

Body Params
string
required
length between 1 and 50
string
enum
required
Allowed:
string
enum
required
Allowed:
DataConfigGeneral | DataConfigDistributionCompare
required
uuid
required
item_metadata
object
required
string
enum
required
Allowed:
Responses

422

Unprocessable Entity

500

Internal Server Error

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json