Clanbite Social Kit clanbite-social-kit/v1

POST /wp-json/clanbite-social-kit/v1/posts/(?P<id>\d+)/reactions

POST

Toggle a reaction on a post (body: { "reaction_type": "like" }).

Access is checked by require_login().

ArgumentTypeDefaultDescription
id requiredinteger

Handled by toggle_reaction()

Example

curl -X POST 'https://example.com/wp-json/clanbite-social-kit/v1/posts/(?P<id>\d+)/reactions'

Defined in inc/Rest/Rest_Controller.php