Adds or removes the current user reaction on a post and returns the updated reaction count.
react_type accepts like or bookmark and defaults to like; anything else falls back to like. Send remove truthy to withdraw the reaction. Only likes affect reactions_count — a bookmark is private and does not change the visible count. Reacting twice is a no-op that still returns the current count. The post updated_at is deliberately not touched so reactions do not resurface the post in ticker polls.
Endpoint
Method:
POSTPath:
/feeds/{feed_id}/reactions/toggleEdition: Core
Controller:
ReactionController@addOrRemovePostReactRoute source:
fluent-community/app/Http/Routes/api.php:76Controller source:
fluent-community/app/Http/Controllers/ReactionController.phpRequires a signed-in user, and the post must be published.
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 Post Add Or Remove Post React
Adds or removes the current user reaction on a post and returns the updated reaction count.
Controller: ReactionController@addOrRemovePostReact
Route source: fluent-community/app/Http/Routes/api.php:76
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Feed ID extracted from the URL path.
Request Body
Responses
Successful response