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

Mark a notification as read

PUThttps://api.testingapis.com/api/Notifications/{id}/readSign in to see this endpoint's URL

Parameters 1

NameTypeDescription
idrequiredpath · integer (int32)Notification ID.

Responses

200
Updated; returns { message, data }.
404
The notification does not exist.
500
Unexpected server error.

Example

Request
curl -X PUT "https://api.testingapis.com/api/Notifications/2/read" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "message": "Notification marked as read",
  "data": {
    "id": 2,
    "userId": 101,
    "type": "like",
    "title": "Your post got a like",
    "body": "Emma liked your post 'Getting Started with REST APIs'",
    "read": true,
    "link": "/posts/1",
    "createdAt": "2025-07-16T14:10:00Z"
  }
}

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.