TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Mark all notifications as read, for one user or for everyone

PUThttps://api.testingapis.com/api/Notifications/read-allSign in to see this endpoint's URL

Parameters 1

NameTypeDescription
userIdquery · integer (int32)Only this user's notifications (default: all users).

Responses

200
Returns { message, updated } with the number of notifications changed.
500
Unexpected server error.

Example

Request
curl -X PUT "https://api.testingapis.com/api/Notifications/read-all?userId=101" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{"message": "All notifications marked as read", "updated": 1}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.