update_widget
Update an existing dashboard widget by modifying its title, NRQL query, type, layout, or advanced chart settings.
Instructions
Update an existing widget on a dashboard.
Use the optional raw_configuration parameter to control advanced chart display settings. When provided,
it is sent as rawConfiguration to NerdGraph and takes precedence over the typed configuration.
See the add_widget_to_dashboard description for the full rawConfiguration reference.
Update-specific notes:
Omit
widget_typeto keep the widget's current visualization.Omit
layoutto keep the widget's current position and size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_guid | Yes | Page GUID where the widget is located | |
| widget_id | Yes | Widget ID to update | |
| widget_title | No | New title for the widget | |
| widget_query | No | New NRQL query for the widget | |
| widget_type | No | New widget type (line, area, bar, pie, table, billboard, etc.). Omit to keep the widget's current visualization. | |
| raw_configuration | No | Advanced chart display configuration sent as rawConfiguration to NerdGraph. Must include 'nrqlQueries' array with accountIds (array, not scalar). Supports: yAxisLeft ({min, max, zero}), yAxisRight ({zero, series:[{name}]}), legend ({enabled}), facet ({showOtherSeries}), platformOptions ({ignoreTimeRange}), thresholds ({isLabelVisible}), chartStyles ({lineInterpolation: linear/step/smooth}), markers ({displayedTypes: {deployments, relatedDeployments, criticalViolations, warningViolations}}). Note: logarithmic scale is NOT supported. Overrides the typed configuration when provided. | |
| layout | No | New widget placement on the dashboard's 12-column grid. Omit to keep the widget's current position and size. |