Dashboards
Create Widget
Adds a widget configuration to a dashboard and returns the id of the created widget. Use the dashboard detail endpoint for its full configuration, or a query endpoint for computed widget data.
post/v1/dashboards/{dashboardId}/widgets
Path parameters
dashboardIdstring required
The id of the dashboard.
Request body
Example request
{
"lines": [
{
"extraQueryParams": {
"metricMetadataKey": "tokenCount"
}
}
]
}Response
The id of the created widget.