Skip to content

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.

Endpoint

  • Method: POST

  • Path: /feeds/{feed_id}/comments/{comment_id}

  • Edition: Core

  • Controller: CommentsController@update

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

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

  • 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.

POST Update Comment

POST
/feeds/{feed_id}/comments/{comment_id}

Replaces the body of an existing comment, re-renders it, and reconciles its attached media with the submitted list.

Controller: CommentsController@update
Route source: fluent-community/app/Http/Routes/api.php:54

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
comment_id*

Comment ID extracted from the URL path.

Type
integer
Required

Request Body

application/json
JSON
{
  
"comment": "string"
}

Responses

Successful response

application/json
JSON
{
  
"comment": {
  
  
"content_type": "string",
  
  
"created_at": "string",
  
  
"id": 0,
  
  
"is_sticky": 0,
  
  
"media": "string",
  
  
"message": "string",
  
  
"message_rendered": "string",
  
  
"meta": [
  
  
  
{
  
  
  
  
"additionalProperties": "string"
  
  
  
}
  
  
],
  
  
"parent_id": "string",
  
  
"post_id": 0,
  
  
"reactions_count": "string",
  
  
"status": "string",
  
  
"type": "string",
  
  
"updated_at": "string",
  
  
"user_id": "string",
  
  
"xprofile": {
  
  
  
"avatar": "string",
  
  
  
"badge": "string",
  
  
  
"created_at": "string",
  
  
  
"display_name": "string",
  
  
  
"is_verified": 0,
  
  
  
"last_activity": "string",
  
  
  
"meta": {
  
  
  
  
"badge_slug": "string",
  
  
  
  
"cover_photo": "string",
  
  
  
  
"social_links": {
  
  
  
  
  
"fb": "string",
  
  
  
  
  
"instagram": "string",
  
  
  
  
  
"linkedin": "string",
  
  
  
  
  
"twitter": "string",
  
  
  
  
  
"youtube": "string"
  
  
  
  
},
  
  
  
  
"website": "string"
  
  
  
},
  
  
  
"permalink": "string",
  
  
  
"short_description": "string",
  
  
  
"status": "string",
  
  
  
"total_points": 0,
  
  
  
"user_id": 0,
  
  
  
"username": "string"
  
  
}
  
},
  
"message": "string"
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation