Skip to main content

Discussion

{
"id": "integer",
"type": "string",
"last_activity_at": "string",
"author": {},
"added_at": "string",
"last_edited_at": "string",
"html": "string",
"summary": "string",
"deleted": "boolean",
"collapsed": "boolean",
"comment_count": "integer",
"view_count": "integer",
"vote_count": "integer",
"reactions_count": [],
"voted": "boolean",
"reaction": {},
"follower_count": "integer",
"followed": "boolean",
"suspended": "boolean",
"flag_count": "integer",
"share_count": "integer",
"slug": "string",
"categories": [],
"medias": [],
"location": "string",
"tags": [],
"group": "integer",
"poll": {},
"title": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalseread-onlyA unique integer value identifying this discussion
typestringfalseread-onlyDiscussion type
last_activity_atstring(date-time)falseread-onlyDiscussion last activity datetime
authorUserfalseread-onlyDiscussion author
added_atstring(date-time)falseread-onlyDiscussion creation time
last_edited_atstring(date-time)falseread-onlyDiscussion last edit time
htmlstringfalseread-onlyDiscussion html content
summarystringfalseread-onlyDiscussion summary
deletedbooleanfalseread-onlyIf true, discussion has been deleted
collapsedstringfalseread-onlyIf true, discussion has been collapsed
comment_countintegerfalseread-onlyThe number of comments associated to this contribution
view_countintegerfalseread-onlyThe number of views associated to this contribution
vote_countintegerfalseread-onlyThe number of votes/reactions associated to this contribution
reactions_countlist(Reaction)falseread-onlyReactions associated to this contribution
votedbooleanfalseread-onlyIf true, the logged user has already voted this contribution
reactionReactionfalseread-onlyReaction of the logged user (if he voted this contribution)
follower_countstringfalseread-onlyThe number of followers associated to this contribution
followedbooleanfalseread-onlyIf true, the logged user follows the discussion
suspendedbooleanfalseread-onlyIf true, the logged user has suspended the notifications for the discussion
flag_countintegerfalseread-onlyThe number of flags associated to this contribution
share_countintegerfalseread-onlyThe number of shares associated to this contribution
slugstringfalseread-onlyDiscussion slug
categorieslist(Category)truenoneThe categories (at least one category is required) associated to this contribution
mediaslist(Media)falsenoneThe medias associated to this contribution
locationobject¦nullfalsenoneThe location object associated to this contribution
» locationstring¦nulltruenoneLocation name
» latnumber¦nulltruenoneLocation latitude
» lngnumber¦nulltruenoneLocation Longitude
addressinglist(integer)falsenoneList of Tag ids. Only tags of type 'user' used for addressing this contribution
tagslist(integer)falsenoneList of Tag ids. Only tags of type 'contribution'
groupintegerfalsenoneThe id of the group
pollPoll¦nullfalsenoneThe poll object associated to this contribution
titlestringtruenoneDiscussion title