/api/qmail/db/notifications/dismiss

GET POST

Dismiss (soft-delete) a received-tell notification by id.

GET http://localhost:8081/api/qmail/db/notifications/dismiss?id=42

Parameters

ParamTypeRequiredDescription
idintYesThe notification's tell id (from notifications/list).

Response

{ "success": true, "message": "Notification dismissed" }

Errors

HTTPMessage
400Missing 'id' parameter
400Invalid notification id
404Notification not found
500Failed to dismiss notification

Example

# GET — easy browser/devtool testing
curl "http://localhost:8081/api/qmail/db/notifications/dismiss?id=42"

# Canonical POST
curl -X POST "http://localhost:8081/api/qmail/db/notifications/dismiss?id=42"

Related