Clanbite Social Kit clanbite-social-kit/v1

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

POST

Cast a vote on a post poll (one vote per user; authors cannot vote on their own poll).

Access is checked by require_login().

ArgumentTypeDefaultDescription
id requiredinteger

Handled by vote_poll()

Example

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

Defined in inc/Rest/Rest_Controller.php