Marks one notification read for the current user and returns the recalculated unread count.
When the notification is tied to a post, every other notification for that same post is marked read at the same time, so opening one item clears the whole thread rather than a single row.
Endpoint
Method:
POSTPath:
/notifications/mark-read/{notification_id}Edition: Core
Controller:
NotificationsController@markAsReadRoute source:
fluent-community/app/Http/Routes/api.php:133Controller source:
fluent-community/app/Http/Controllers/NotificationsController.phpRequires a signed-in user; only the caller own subscriber rows are touched.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
POST Mark Notification Read
Marks one notification read for the current user and returns the recalculated unread count.
Controller: NotificationsController@markAsRead
Route source: fluent-community/app/Http/Routes/api.php:133
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Notification ID extracted from the URL path.
Responses
Successful response