Replaces the body of an existing comment, re-renders it, and reconciles its attached media with the submitted list.
The comment must belong to the post named in the path. Media rows attached to the comment but absent from the new payload are handed to the fluent_community/comment/media_deleted action for cleanup. Notification hooks fire only when something actually changed.
The comment author can always edit; anyone else needs the edit_any_comment permission in the space.
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.
Replaces the body of an existing comment, re-renders it, and reconciles its attached media with the submitted list.
The comment must belong to the post named in the path. Media rows attached to the comment but absent from the new payload are handed to the
fluent_community/comment/media_deletedaction for cleanup. Notification hooks fire only when something actually changed.Endpoint
Method:
POSTPath:
/feeds/{feed_id}/comments/{comment_id}Edition: Core
Controller:
CommentsController@updateRoute source:
fluent-community/app/Http/Routes/api.php:54Controller source:
fluent-community/app/Http/Controllers/CommentsController.phpThe comment author can always edit; anyone else needs the
edit_any_commentpermission in the space.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 Update Comment
Replaces the body of an existing comment, re-renders it, and reconciles its attached media with the submitted list.
Controller:
CommentsController@updateRoute source:
fluent-community/app/Http/Routes/api.php:54Authorizations
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