Delete Widget
DELETEhttps://api.confident-ai.com/v2/dashboards/{dashboardId}/widgets/{widgetId}
Removes a widget from a dashboard. A widget shown on other dashboards is only taken off this one; the last dashboard to drop it deletes it and its lines for good.
curl -X DELETE "https://api.confident-ai.com/v2/dashboards/{dashboardId}/widgets/{widgetId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<WIDGET-ID>"
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
dashboardIdstringRequiredThe id of the dashboard the widget is on.
widgetIdstringRequiredThe id of the widget.
Response
Delete Widget succeeded.
successbooleanIndicates if the request was successful.
dataobjectA reference to a widget by its id.
Show 1 propertyHide 1 property
idstringThe id of the widget, generated by Confident AI.
deprecatedbooleanIndicates if this endpoint is deprecated.