vote

Allows a user to vote for a resource.

Changed on

Allows a user to vote for a resource. Vote can be "up", "down" or "cancel" to cancel a previous vote.

put/api/v1/vote

Request

  • The document declares no server URL.
  • Auth: API key in cookie token

Request body

resourceIdstring required

ID of the resource to vote

vote'up' | 'down' | 'cancel' required

Upvote, downvote or cancel a previous vote.

Response

Vote was sent and stored successfully.

Changes

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property from the response with the status

    • info

      added to the response body anyOf list for the response status

    • info

      removed the non-success response with the status