Clanbite Social Kit clanbite-social-kit/v1 Since 1.6.2

POST /wp-json/clanbite-social-kit/v1/reactions/(?P<object_type>[a-z0-9_-]+)/(?P<id>\d+)

POST

REST: toggle a reaction ({ "reaction_type": "like" }).

Access is checked by a custom check.

ArgumentTypeDefaultDescription
object_type requiredstring
id requiredinteger

Handled by rest_toggle()

Example

curl -X POST 'https://example.com/wp-json/clanbite-social-kit/v1/reactions/(?P<object_type>[a-z0-9_-]+)/(?P<id>\d+)'

Defined in inc/Social/Reactions.php

Changelog

VersionDescription
1.6.2Introduced.