Skip to main content
PATCH
Update partially custom widget by ID

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Path Parameters

id
string
required

Custom widget _id

Body

application/json

Fields to change

name
string

Literal display name, never translated

Maximum string length: 200
description
string
viz
string

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

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

defaultLayout
object

Default card size when the widget is added to a dashboard

Response

Success

status
boolean
Example:

true

code
integer
message
string
data
object