Skip to content

Endpoint

  • Method: POST
  • Path: /feeds/{feed_id}/react
  • Edition: Core
  • Controller: CommentsController@addOrRemovePostReact
  • Route source: fluent-community/app/Http/Routes/api.php:55
  • Controller source: fluent-community/app/Http/Controllers/CommentsController.php

POST Toggle Feed Reaction

POST
/feeds/{feed_id}/react

Toggle Feed Reaction for the FluentCommunity Reactions API.

Controller: CommentsController@addOrRemovePostReact
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

Request Body

application/json
JSON
{
  
"react_type": "string",
  
"remove": "string"
}

Responses

Successful response

application/json
JSON
{
  
"message": "string",
  
"new_count": 0
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation