Newer Version Available

This content describes an older version of this product. View Latest

Comment Capability, Upvote and Downvote

Get the upvotes and downvotes for a comment. Upvote or downvote a comment.
Resource
1/chatter/comments/commentId/capabilities/up-down-vote
1/connect/communities/communityId/chatter/comments/commentId/capabilities/up-down-vote
Available version
41.0
Requires Chatter
Yes
HTTP methods
GET, PATCH
Request body for PATCH
Root XML tag
<upDownVoteCapability>
JSON example
1{
2   "vote":"Up"
3}
Properties
Name Type Description Required or Optional Available Version
vote String Type of vote for a feed element or comment. Values are:
  • Down
  • None
  • Up
Required 41.0
Request parameters for PATCH
Parameter Name Type Description Required or Optional Available Version
vote String Type of vote for a feed element or comment. Values are:
  • Down
  • None
  • Up
Required 41.0
Response body for GET and PATCH
Up Down Vote Capability

If the comment doesn’t support this capability, the response is 404: Not Found.