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
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | integer | false | read-only | A unique integer value identifying this comment |
author | User | true | read-only | The comment author |
added_at | string(date-time) | false | read-only | Datetime of creation |
last_edited_at | string(date-time) | false | read-only | Datetime of last edit |
html | string | false | read-only | The html description |
summary | string | false | read-only | The comment summary |
deleted | boolean | false | read-only | Is this comment deleted |
collapsed | boolean | false | read-only | Is this comment collapsed |
parent | integer¦null | false | none | Id of the parent Comment |
in_reply_to | integer¦null | false | none | Id of the reply Comment, it must have the same parent and object |
comment_count | integer | false | read-only | The number of comments |
vote_count | integer | false | read-only | Number of votes/reactions associated to this contribution |
reactions_count | list(Reaction) | false | read-only | Reactions associated to this contribution |
flag_count | integer | false | read-only | The number of flags |
discussion | dictionary | false | none | Id and slug of the Discussion |
post | integer¦null | false | none | Id of the Post |
status | integer¦null | false | none | Id of the Status |
latest_comments | list(CommentSummary) | false | read-only | The list of last comments |
type | string | true | write-only | The type of comment |
voted | boolean | false | read-only | If true, the logged user has already voted this contribution |
reaction | Reaction | false | read-only | Reaction of the logged user (if he voted this contribution) |