Skip to content

Set all as read

Mark all users notifications as read.

Endpoint

http
PATCH /api/v1/notifications

Parameters

Body parameters

ParameterTypeRequiredDescription
idsarraynoOptional list of notification ids to mark as read. Omit to mark all as read.

Request example

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

Response

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