Bulk delete notifications

Deletes one or more notifications by ID.

Requires authentication.

Request

DELETE /notifications

Headers

HeaderValue
AuthorizationBearer <token>

Query Parameters

ParameterTypeRequiredDescription
idsarrayYesArray of notification IDs to delete. Can be passed as repeated query parameters: ?ids[]=1&ids[]=2.

Example Request

DELETE /notifications?ids[]=1&ids[]=2
Authorization: Bearer <token>

Response

Returns a JSON object confirming the deletion.

Response Body

FieldTypeDescription
okbooleantrue if the operation was successful.

Example Response

{
  "ok": true
}

Error Responses

StatusDescription
400ids is not an array.