Marks every unread notification read for the current user in a single update.
Endpoint
Method:
POSTPath:
/notifications/mark-all-readEdition: Core
Controller:
NotificationsController@markAllReadRoute source:
fluent-community/app/Http/Routes/api.php:135Controller source:
fluent-community/app/Http/Controllers/NotificationsController.phpRequires a signed-in user; the unread count is not returned, so refetch it if you display one.
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 All Notifications Read
Marks every unread notification read for the current user in a single update.
Controller: NotificationsController@markAllRead
Route source: fluent-community/app/Http/Routes/api.php:135
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Responses
Successful response