Skip to main content

Comment

{
"id": "integer",
"author": {},
"added_at": "string",
"last_edited_at": "string",
"html": "string",
"summary": "string",
"deleted": "boolean",
"collapsed": "boolean",
"parent": "integer",
"in_reply_to": "integer",
"comment_count": "integer",
"vote_count": "integer",
"reactions_count": [],
"flag_count": "integer",
"post": {
"id": "integer",
"slug": "string"
},
"latest_comments": [],
"type": "string",
"voted": "boolean",
"reaction": {}
}

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalseread-onlyA unique integer value identifying this comment
authorUsertrueread-onlyThe comment author
added_atstring(date-time)falseread-onlyDatetime of creation
last_edited_atstring(date-time)falseread-onlyDatetime of last edit
htmlstringfalseread-onlyThe html description
summarystringfalseread-onlyThe comment summary
deletedbooleanfalseread-onlyIs this comment deleted
collapsedbooleanfalseread-onlyIs this comment collapsed
parentinteger¦nullfalsenoneId of the parent Comment
in_reply_tointeger¦nullfalsenoneId of the reply Comment, it must have the same parent and object
comment_countintegerfalseread-onlyThe number of comments
vote_countintegerfalseread-onlyNumber of votes/reactions associated to this contribution
reactions_countlist(Reaction)falseread-onlyReactions associated to this contribution
flag_countintegerfalseread-onlyThe number of flags
discussiondictionaryfalsenoneId and slug of the Discussion
postinteger¦nullfalsenoneId of the Post
statusinteger¦nullfalsenoneId of the Status
latest_commentslist(CommentSummary)falseread-onlyThe list of last comments
typestringtruewrite-onlyThe type of comment
votedbooleanfalseread-onlyIf true, the logged user has already voted this contribution
reactionReactionfalseread-onlyReaction of the logged user (if he voted this contribution)