Delete dashboard chart¶
Delete the chart in the specified data dashboard. This operation is irreversible.
DELETE $CLOUDSIGMA_API_BASE/data-dashboards/{dashboard_id}/charts/{chart_id}
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare personal access token and target workspace ID that can access the target workspace. Get the kanban ID from Query data kanban list. Get the chart ID from Query data dashboard details.
Request parameters¶
Replace $DASHBOARD_ID, $CHART_ID, $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.
curl -X DELETE "$CLOUDSIGMA_API_BASE/data-dashboards/$DASHBOARD_ID/charts/$CHART_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Data dashboard ID. |
|
string |
Yes |
Chart ID. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"deleted": true
}
}
Field |
Type |
Description |
|---|---|---|
|
boolean |
Has it been deleted? Fixed to true. |
Error response¶
The following example corresponds to HTTP 404.
{
"code": "ErrDataDashboardNotFound",
"msg": "Not Found"
}
Field |
Type |
Description |
|---|---|---|
|
string |
Error code, such as |
|
string |
HTTP status description, such as |