curl -X DELETE \
-H "X-API-Key: $PARTICLE_API_KEY" \
"https://api.particle.pro/v1/alerts/{id}"{
"deleted": true
}{
"detail": "Property foo is required but is missing.",
"error_code": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"resolve": {
"message": "<string>",
"action": "<string>",
"endpoint": "<string>",
"method": "<string>",
"url": "<string>"
},
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Alerts
Delete an alert
Soft-delete an alert. Existing matches and deliveries are retained for audit but no further matches will be produced. Only the alert’s creator or an organization OWNER or ADMIN can delete it; an API key acts as the user who created the key. Any other caller receives 403.
DELETE
/
v1
/
alerts
/
{id}
curl -X DELETE \
-H "X-API-Key: $PARTICLE_API_KEY" \
"https://api.particle.pro/v1/alerts/{id}"{
"deleted": true
}{
"detail": "Property foo is required but is missing.",
"error_code": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"resolve": {
"message": "<string>",
"action": "<string>",
"endpoint": "<string>",
"method": "<string>",
"url": "<string>"
},
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Prefer the terminal? This endpoint is also a command in the Particle CLI: pick Particle CLI in the request example’s language menu. Install the Particle CLI.
Was this page helpful?