Skip to main content
POST
Create custom widget

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Body

application/json

Custom widget

name
string
required

Literal display name, never translated

Maximum string length: 200
viz
string
required

Chart type: one of the chart types used by the built-in query widgets (currently bar, donut, heatmap, kpi, line, table)

Maximum string length: 50
spec
object
required

Query spec, validated the same way as Run analytics query. Do not send timeRange; the dashboard supplies it.

description
string
defaultLayout
object

Default card size when the widget is added to a dashboard

Response

Created - the new custom widget

status
boolean
Example:

true

code
integer
message
string
data
object