Skip to content

Endpoint

  • Method: POST
  • Path: /feeds/{feed_id}/comments/{comment_id}/reactions
  • Edition: Core
  • Controller: CommentsController@toggleReaction
  • Route source: fluent-community/app/Http/Routes/api.php:58
  • Controller source: fluent-community/app/Http/Controllers/CommentsController.php

POST Toggle Comment Reaction

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

Toggle Comment Reaction for the FluentCommunity Reactions API.

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

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

Responses

Successful response

application/json
JSON
{
  
"message": "string",
  
"reactions_count": 0,
  
"liked": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
]
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation