Update widget
Update a widget.
Authorizations
API key for authentication
Path Parameters
Dashboard resource ID (22-character ShortUUID)
Widget resource ID (22-character ShortUUID)
Body
All fields optional (PATCH semantics). Unlike the dashboard-level config, which is replaced, config is MERGED into the stored blob one key at a time: a key you send replaces its stored value and a key you omit keeps its stored value. Three exceptions are worth knowing before you rely on that. Null-valued keys are dropped before the merge, so they do not clear anything -- and if dropping them leaves the object empty, the result is an empty object, which clears the whole blob. Sending "type": "table" validates config as a table widget, whose metricIds defaults to an empty list, so any table-widget PATCH that omits metricIds overwrites it with []; omitting "type" validates against the chart shape instead and leaves metricIds alone. Clearing a single key requires sending an empty value for it (for example "metricFilter": []), which is only possible for the list- and object-valued keys -- scalar keys such as metricId, aggregation or groupByMetadataKey have no empty value and cannot be individually cleared. To clear the whole blob, send an empty object.
Updated widget name
1 - 255Type of widget.
- chart: Visualization widget (line, bar, area, pie, histogram, statistic, top-list)
- table: Tabular data widget with multiple metrics
- text: Free-form text/markdown widget
chart, table, text "chart"
Grid column position
Grid row position
Grid column span
Grid row span
Widget configuration, structure depends on widget type
- Option 1
- Option 2
- Option 3
Response
Widget updated successfully
Widget resource