Skip to content

Marks every unread notification read for the current user in a single update.

Endpoint

  • Method: POST

  • Path: /notifications/mark-all-read

  • Edition: Core

  • Controller: NotificationsController@markAllRead

  • Route source: fluent-community/app/Http/Routes/api.php:135

  • Controller source: fluent-community/app/Http/Controllers/NotificationsController.php

  • Requires 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

POST
/notifications/mark-all-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

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Responses

Successful response

application/json
JSON
{
  
"message": "string"
}

Playground

Authorization

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation