social.coves.feed.vote.create
Create or toggle a vote on a post or comment. If a vote in the same direction exists, it will be removed (toggled off). If a vote in the opposite direction exists, it will be replaced.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | vote.feed.coves.social |
| Indexed |
Procedure
procedure · POSTInput
application/jsonVote direction: up for upvote, down for downvote
maxLength: 64knownValues: up | down
Strong reference to the post or comment being voted on
Output
application/jsonErrors
NotAuthorized
User is not authorized to vote on this content
InvalidSubject
The subject reference is invalid or malformed
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
social.coves.feed.vote
recordRecord declaring a vote (upvote or downvote) on a post or comment. Requires authentication.
-
social.coves.feed.vote.delete
procedureDelete a vote on a post or comment
-
An upvote or downvote on a post or comment
-
An upvote or downvote on a post or reply. Indexers should keep the latest vote per (author, subject).
-
dev.jazco.boards.vote
recordOne vote per member per subject: the rkey is derived from the subject URI, so a changed vote is a putRecord and an unvote a deleteRecord.