Like a post and other actions
Body
idintegerrequiredThe ID of the post to perform the action on
post_ action_ type_ idintegerrequiredThe ID of the post action type (e.g., 2 for like)
flag_ topicbooleanWhether to flag the entire topic
Parameters
Api-KeystringrequiredheaderApi-UsernamestringrequiredheaderResponse
post updated
Response fields application/json
idintegerrequiredThe ID of the post
namestringrequiredThe name of the post author
usernamestringrequiredThe username of the post author
avatar_ templatestringrequiredTemplate for the author's avatar URL
created_ atstringrequiredWhen the post was created
cookedstringrequiredThe HTML content of the post
post_ numberintegerrequiredThe post number within the topic
post_ typeintegerrequiredThe type of post
posts_ countintegerrequiredTotal posts count for the user
updated_ atstringrequiredWhen the post was last updated
reply_ countintegerrequiredNumber of replies to this post
reply_ to_ post_ numberstring | nullrequiredPost number this post is replying to
quote_ countintegerrequiredNumber of times this post has been quoted
incoming_ link_ countintegerrequiredNumber of incoming links to this post
readsintegerrequiredNumber of reads
readers_ countintegerrequiredNumber of readers
scorenumberrequiredPost score
yoursbooleanrequiredWhether this post belongs to the current user
topic_ idintegerrequiredID of the topic this post belongs to
topic_ slugstringrequiredSlug of the topic this post belongs to
display_ usernamestringrequiredDisplay username of the post author
primary_ group_ namestring | nullrequiredPrimary group name of the author
flair_ namestring | nullrequiredFlair name of the author
flair_ urlstring | nullrequiredFlair URL of the author
flair_ bg_ colorstring | nullrequiredFlair background color of the author
flair_ colorstring | nullrequiredFlair color of the author
flair_ group_ idinteger | nullrequiredFlair group ID of the author
badges_ grantedarrayrequiredBadges granted to the user
versionintegerrequiredVersion number of the post
can_ editbooleanrequiredWhether the current user can edit this post
can_ deletebooleanrequiredWhether the current user can delete this post
can_ recoverbooleanrequiredWhether the current user can recover this post
can_ see_ hidden_ postbooleanrequiredWhether the current user can see hidden posts
can_ wikibooleanrequiredWhether the current user can wiki this post
user_ titlestring | nullrequiredTitle of the post author
bookmarkedbooleanrequiredWhether the post is bookmarked by the current user
actions_ summaryArray<object>requiredSummary of actions performed on this post
Show child attributes
idintegerID of the action type (e.g., 2 for like)
countintegerNumber of times this action has been performed
actedbooleanWhether the current user has performed this action
can_ undobooleanWhether the current user can undo this action
can_ actbooleanWhether the current user can perform this action
moderatorbooleanrequiredWhether the post author is a moderator
adminbooleanrequiredWhether the post author is an admin
staffbooleanrequiredWhether the post author is staff
user_ idintegerrequiredID of the post author
hiddenbooleanrequiredWhether the post is hidden
trust_ levelintegerrequiredTrust level of the post author
deleted_ atstring | nullrequiredWhen the post was deleted
user_ deletedbooleanrequiredWhether the post was deleted by the user
edit_ reasonstring | nullrequiredReason for the last edit
can_ view_ edit_ historybooleanrequiredWhether the current user can view edit history
wikibooleanrequiredWhether this is a wiki post
reviewable_ idinteger | nullrequiredID of the reviewable if this post is under review
reviewable_ score_ countintegerrequiredNumber of reviewable scores
reviewable_ score_ pending_ countintegerrequiredNumber of pending reviewable scores
post_ urlstringrequiredURL of the post