Dashboards
Update Widget
Updates a widget configuration and returns the id of the updated widget. Provided fields replace its configuration, omitted scalar fields are cleared, and lines replace the existing lines when provided.
put/v1/dashboards/{dashboardId}/widgets/{widgetId}
Path parameters
dashboardIdstring required
The id of the dashboard.
widgetIdstring required
The id of the widget.
Request body
Example request
{
"lines": [
{
"extraQueryParams": {
"metricMetadataKey": "tokenCount"
}
}
]
}Response
The id of the updated widget.