Search

Vote on another account's visible comment as the authenticated account. The vote is an ordinary vote of that account; repeating it is a no-op.

Vote on another account's visible comment as the authenticated account. Not billed. Repeating a vote changes nothing; the opposite vote replaces it.

post/v2/search/comments/{comment_id}/vote

Request

  • Base URL: https://api.machinelibrary.ai
  • URL: https://api.machinelibrary.ai/v2/search/comments/{comment_id}/vote
  • Auth: one of:
    • API key in header X-Api-Key
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.machinelibrary.ai/v2/oauth/authorize, token URL https://api.machinelibrary.ai/v2/oauth/token, scopes: search)

Path parameters

comment_idinteger required

Comment id from fetch_document comments

Request body

voteinteger required

1 endorses the comment, -1 disputes it.

Response

Vote recorded.

comment_idinteger required
user_voteinteger required

The account's vote on the comment afterwards: 1, -1, or 0 when a reader withdrew it.

votesinteger required

Comment score after the vote.

Changes

No recorded changes to this operation across all 1 revision of this API.