Docs·Dashboards

DELETE/api/v1/spreelytics/dashboards/:dashboardId

Delete a dashboard

Deletes the dashboard and every report on it, in one step. If the dashboard had a public share link, the link stops working too. This cannot be undone.

To keep a chart, move it to another dashboard first with PUT /reports/{reportId} and that dashboard's id as dashboardId.

Needs the Editor or Admin role in the workspace that owns the audience. A Viewer gets 403.

Keys: an account key. Getting started explains both kinds.

Parameters

PropInTypeNotes
dashboardIdpathstringThe dashboard id.
contactListIdquerystringThe audience id, a UUID. With an audience key it must be that key's own audience.

Response

PropTypeNotes
deletedbooleanAlways true. An id that is not in this audience answers 404 instead.

Request

curl -X DELETE 'https://app.spreelytics.com/api/v1/spreelytics/dashboards/:dashboardId?contactListId=…' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{ … }'
const res = await fetch('https://app.spreelytics.com/api/v1/spreelytics/dashboards/:dashboardId', {
  method: 'DELETE',
  headers: {
    Authorization: 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ /* see Request body above */ }),
});
const data = await res.json();
import requests

res = requests.delete(
    "https://app.spreelytics.com/api/v1/spreelytics/dashboards/:dashboardId",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={},  # see Request body above
)
data = res.json()

Response

{
  "deleted": true
}

See your own numbers today.

Free up to 100k events a month · no credit card

Contact

Tell us what you need.

A real person reads these. We usually reply within one working day.

Or email us directly at contact@spreelytics.com.