Delete Evaluation Dashboard
DELETE/v5/evaluation-dashboards/{dashboard_id}
Soft-delete a dashboard by setting its archived timestamp.
The dashboard row is retained and marked archived rather than physically removed, so
it stops appearing in default listings but can still be fetched with
include_archived=true; the archived dashboard is returned by this call. Associated
widgets and widget results are not deleted or detached. Returns a not-found error if
the dashboard does not exist in the caller’s account.
Delete Evaluation Dashboard
curl https://api.egp.scale.com/v5/evaluation-dashboards/$DASHBOARD_ID \
-X DELETE \
-H "x-api-key: $SGP_API_KEY"{
"id": "id",
"account_id": "account_id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"id": "id",
"type": "user",
"object": "identity"
},
"name": "name",
"tags": [
"string"
],
"updated_at": "2019-12-27T18:11:19.117Z",
"archived_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"error_message": "error_message",
"evaluation_group_id": "evaluation_group_id",
"evaluation_id": "evaluation_id",
"object": "evaluation_dashboard",
"widget_order": [
"string"
],
"widget_results": [
{
"id": "id",
"account_id": "account_id",
"computation_status": "pending",
"created_at": "2019-12-27T18:11:19.117Z",
"widget_id": "widget_id",
"computation_job_id": "computation_job_id",
"computed_at": "2019-12-27T18:11:19.117Z",
"computed_result": {
"foo": "bar"
},
"error_message": "error_message",
"evaluation_group_id": "evaluation_group_id",
"evaluation_id": "evaluation_id",
"object": "evaluation_dashboard_widget_result",
"widget": {
"id": "id",
"account_id": "account_id",
"created_at": "2019-12-27T18:11:19.117Z",
"title": "title",
"type": "bar",
"archived_at": "2019-12-27T18:11:19.117Z",
"config": {
"foo": "bar"
},
"object": "evaluation_dashboard_widget",
"query": {
"select": [
{
"expression": {
"column": "column",
"source": "source",
"type": "COLUMN"
},
"alias": "alias"
}
],
"evaluation_ids": [
"string"
],
"filter": {
"conditions": [
{
"column": "column",
"operator": "=",
"source": "source",
"value": "string"
}
],
"logicalOperators": [
"AND"
]
},
"groupBy": [
"string"
],
"latest_only": true,
"limit": 1,
"orderBy": [
{
"column": "column",
"direction": "ASC",
"source": "source"
}
]
}
}
}
],
"widgets": [
{
"id": "id",
"account_id": "account_id",
"created_at": "2019-12-27T18:11:19.117Z",
"title": "title",
"type": "bar",
"archived_at": "2019-12-27T18:11:19.117Z",
"config": {
"foo": "bar"
},
"object": "evaluation_dashboard_widget",
"query": {
"select": [
{
"expression": {
"column": "column",
"source": "source",
"type": "COLUMN"
},
"alias": "alias"
}
],
"evaluation_ids": [
"string"
],
"filter": {
"conditions": [
{
"column": "column",
"operator": "=",
"source": "source",
"value": "string"
}
],
"logicalOperators": [
"AND"
]
},
"groupBy": [
"string"
],
"latest_only": true,
"limit": 1,
"orderBy": [
{
"column": "column",
"direction": "ASC",
"source": "source"
}
]
}
}
]
}Returns Examples
{
"id": "id",
"account_id": "account_id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"id": "id",
"type": "user",
"object": "identity"
},
"name": "name",
"tags": [
"string"
],
"updated_at": "2019-12-27T18:11:19.117Z",
"archived_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"error_message": "error_message",
"evaluation_group_id": "evaluation_group_id",
"evaluation_id": "evaluation_id",
"object": "evaluation_dashboard",
"widget_order": [
"string"
],
"widget_results": [
{
"id": "id",
"account_id": "account_id",
"computation_status": "pending",
"created_at": "2019-12-27T18:11:19.117Z",
"widget_id": "widget_id",
"computation_job_id": "computation_job_id",
"computed_at": "2019-12-27T18:11:19.117Z",
"computed_result": {
"foo": "bar"
},
"error_message": "error_message",
"evaluation_group_id": "evaluation_group_id",
"evaluation_id": "evaluation_id",
"object": "evaluation_dashboard_widget_result",
"widget": {
"id": "id",
"account_id": "account_id",
"created_at": "2019-12-27T18:11:19.117Z",
"title": "title",
"type": "bar",
"archived_at": "2019-12-27T18:11:19.117Z",
"config": {
"foo": "bar"
},
"object": "evaluation_dashboard_widget",
"query": {
"select": [
{
"expression": {
"column": "column",
"source": "source",
"type": "COLUMN"
},
"alias": "alias"
}
],
"evaluation_ids": [
"string"
],
"filter": {
"conditions": [
{
"column": "column",
"operator": "=",
"source": "source",
"value": "string"
}
],
"logicalOperators": [
"AND"
]
},
"groupBy": [
"string"
],
"latest_only": true,
"limit": 1,
"orderBy": [
{
"column": "column",
"direction": "ASC",
"source": "source"
}
]
}
}
}
],
"widgets": [
{
"id": "id",
"account_id": "account_id",
"created_at": "2019-12-27T18:11:19.117Z",
"title": "title",
"type": "bar",
"archived_at": "2019-12-27T18:11:19.117Z",
"config": {
"foo": "bar"
},
"object": "evaluation_dashboard_widget",
"query": {
"select": [
{
"expression": {
"column": "column",
"source": "source",
"type": "COLUMN"
},
"alias": "alias"
}
],
"evaluation_ids": [
"string"
],
"filter": {
"conditions": [
{
"column": "column",
"operator": "=",
"source": "source",
"value": "string"
}
],
"logicalOperators": [
"AND"
]
},
"groupBy": [
"string"
],
"latest_only": true,
"limit": 1,
"orderBy": [
{
"column": "column",
"direction": "ASC",
"source": "source"
}
]
}
}
]
}