Posts a comment or a threaded reply on a feed item, renders its Markdown, links any attached media and bumps the post comment count.
Either comment text or a media attachment is required; text is capped at 10 000 characters by default. Pass parent_id to reply, which must reference a comment on the same post. An identical comment by the same user on the same post is rejected as a duplicate. Mentions are parsed and recorded so the mentioned members are notified. Where content moderation holds the comment, the response carries the resulting status instead of a success message.
Requires the can_comment permission in the space, and fails when the post author has disabled comments or the course has comments switched off.
Fires fluent_community/comment_added, which is what sends reply and mention notifications.
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.
Posts a comment or a threaded reply on a feed item, renders its Markdown, links any attached media and bumps the post comment count.
Either
commenttext or a media attachment is required; text is capped at 10 000 characters by default. Passparent_idto reply, which must reference a comment on the same post. An identical comment by the same user on the same post is rejected as a duplicate. Mentions are parsed and recorded so the mentioned members are notified. Where content moderation holds the comment, the response carries the resulting status instead of a success message.Endpoint
Method:
POSTPath:
/feeds/{feed_id}/commentsEdition: Core
Controller:
CommentsController@storeRoute source:
fluent-community/app/Http/Routes/api.php:53Controller source:
fluent-community/app/Http/Controllers/CommentsController.phpRequires the
can_commentpermission in the space, and fails when the post author has disabled comments or the course has comments switched off.Fires
fluent_community/comment_added, which is what sends reply and mention notifications.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 Create Comment
Posts a comment or a threaded reply on a feed item, renders its Markdown, links any attached media and bumps the post comment count.
Controller:
CommentsController@storeRoute source:
fluent-community/app/Http/Routes/api.php:53Authorizations
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
Playground
Authorization
Variables
Body
Samples