Skip to content

Marks every notification about one post read for the current user and returns the new unread count together with the remaining unread post ids.

The unread_feed_ids list is what the portal uses to keep the unread dot on individual posts in the feed, so this response is directly usable to update the list in place.

Endpoint

  • Method: POST

  • Path: /notifications/mark-read/{feed_id}/by-feed-id

  • Edition: Core

  • Controller: NotificationsController@markAsReadByFeedId

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

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

  • Requires a signed-in user.

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 Notifications Read By Feed

POST
/notifications/mark-read/{feed_id}/by-feed-id

Marks every notification about one post read for the current user and returns the new unread count together with the remaining unread post ids.

Controller: NotificationsController@markAsReadByFeedId
Route source: fluent-community/app/Http/Routes/api.php:134

Authorizations

ApplicationPasswords

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

Type
API Key (header: Authorization)

Parameters

Path Parameters

feed_id*

Feed ID extracted from the URL path.

Type
integer
Required

Responses

Successful response

application/json
JSON
{
  
"unread_feed_ids": [
  
  
"string"
  
],
  
"unread_notification_count": 0
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation