Alerts
Delete an alert
Remove a rule and its delivery history.
Delete an alert
curl --request DELETE \
--url 'https://truestat.io/api/v1/sites/{siteId}/alerts/{alertId}' \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "ed054a7c-696a-4db4-809e-531a169da959",
"deleted": true
},
"meta": {
"site_id": "6fed8980-a119-4a9c-a4d4-53e448ef9f9e"
}
}See Alerts for the two trigger shapes, what
threshold_mode means, and why an alert belongs to the site rather than to
whoever created it.
Authorizations
AuthorizationstringheaderrequiredAn API key from Settings → API keys. Scopes available: analytics:read, sites:read, sites:write, settings:read, settings:write, goals:read, goals:write, funnels:read, funnels:write, notes:read, notes:write, alerts:read, alerts:write, team:read, team:write, revenue:read, revenue:write.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path parameters
siteIdstring (uuid)pathrequiredThe site's id, from `GET /sites`. A site that is not yours and a site that does not exist both answer 403, so this cannot be used to discover other people's ids.
alertIdstring (uuid)pathrequiredThe alert's id.
Response
The answer.
dataobjectmetaobjecterrorobjecterrorobjecterrorobjecterrorobject