upvotes
array. Removes the user from downvotes
if previously downvoted. Increases the reputation of the comment author and sends a notification.
Path Parameters
The ID of the comment to upvote
Response
Returns the updated comment with the new upvote.Unique comment identifier
ID of the entity this comment belongs to
Array of user IDs who upvoted (includes the current user)
Array of user IDs who downvoted
Comment content
Error Responses
Missing Comment ID - 400 Bad Request
Missing Comment ID - 400 Bad Request
Not Found - 404 Not Found
Not Found - 404 Not Found
Already Upvoted - 409 Conflict
Already Upvoted - 409 Conflict
Server Error - 500 Internal Server Error
Server Error - 500 Internal Server Error
Notes
- If the user already upvoted the comment, a
409 Conflict
error is returned. - Reputation is awarded to the comment’s author.
- A notification is triggered to inform the comment’s author of the upvote.
- The user’s ID is removed from
downvotes
if previously present.