Skip to content

Pins or unpins a top-level comment so it sorts above the rest of the thread.

is_sticky is the only field accepted. Pinning first clears the sticky flag from every other comment on the same post, so a post can only ever have one pinned comment. Replies cannot be pinned.

Endpoint

  • Method: PATCH

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

  • Edition: Core

  • Controller: CommentsController@patchComment

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

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

  • Requires a community moderator or community admin, either globally or within the post 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.

PATCH Patch Comment

PATCH
/feeds/{feed_id}/comments/{comment_id}

Pins or unpins a top-level comment so it sorts above the rest of the thread.

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

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
{
  
"is_sticky": "string"
}

Responses

Successful response

application/json
JSON
{
  
"comment": {
  
  
"content_type": "string",
  
  
"created_at": "string",
  
  
"id": 0,
  
  
"is_sticky": 0,
  
  
"message": "string",
  
  
"message_rendered": "string",
  
  
"meta": [
  
  
  
{
  
  
  
  
"additionalProperties": "string"
  
  
  
}
  
  
],
  
  
"parent_id": "string",
  
  
"post_id": "string",
  
  
"reactions_count": "string",
  
  
"status": "string",
  
  
"type": "string",
  
  
"updated_at": "string",
  
  
"user_id": "string"
  
},
  
"message": "string"
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation