Skip to content

Șterge tot

Șterge toate notificarile disponibile ale utilizatorului.

Endpoint

http
DELETE /api/v1/notifications

Exemplu de cerere

sh
curl --location --request DELETE 'https://files.ro/api/v1/notifications' \
--header 'Authorization: Bearer {token}'

Răspuns

json
{
  "type": "success",
  "message": "All your notifications was deleted."
}
json
{
  "type": "error",
  "message": "You are not authorized"
}
json
{
  "message": "The given data was invalid.",
  "errors": {
    "field": [
      "The field is required."
    ]
  }
}