Sets or clears the current user like on a comment and returns the new reaction count with the resulting liked state.
Unlike the post reaction endpoints this takes an explicit state boolean rather than a remove flag: truthy likes, falsy unlikes, and repeating the same state is a no-op. The comment must belong to the post named in the path.
Requires a signed-in user with at least registered access to the space holding the post.
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.
Sets or clears the current user like on a comment and returns the new reaction count with the resulting liked state.
Unlike the post reaction endpoints this takes an explicit
stateboolean rather than aremoveflag: truthy likes, falsy unlikes, and repeating the same state is a no-op. The comment must belong to the post named in the path.Endpoint
Method:
POSTPath:
/feeds/{feed_id}/comments/{comment_id}/reactionsEdition: Core
Controller:
CommentsController@toggleReactionRoute source:
fluent-community/app/Http/Routes/api.php:59Controller source:
fluent-community/app/Http/Controllers/CommentsController.phpRequires a signed-in user with at least registered access to the space holding the post.
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 Toggle Comment Reaction
Sets or clears the current user like on a comment and returns the new reaction count with the resulting liked state.
Controller:
CommentsController@toggleReactionRoute source:
fluent-community/app/Http/Routes/api.php:59Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Feed ID extracted from the URL path.
Comment ID extracted from the URL path.
Request Body
Responses
Successful response
Playground
Authorization
Variables
Body
Samples