1## Comment
2```json
3{
4 "commentable_id": 407,
5 "commentable_type": "news_post",
6 "created_at": "2019-09-05T06:31:20+00:00",
7 "deleted_at": null,
8 "edited_at": null,
9 "edited_by_id": null,
10 "id": 276,
11 "legacy_name": null,
12 "message": "yes",
13 "message_html": "<div class='osu-md-default'><p class=\"osu-md-default__paragraph\">yes</p>\n</div>",
14 "parent_id": null,
15 "pinned": true,
16 "replies_count": 0,
17 "updated_at": "2019-09-05T06:31:20+00:00",
18 "user_id": 1,
19 "votes_count": 0
20}
21```
22
23Represents a single comment.
24
25Field | Type | Description
26---------------- | ------------------------ | ------------------
27commentable_id | integer | ID of the object the comment is attached to
28commentable_type | string | type of object the comment is attached to
29created_at | [Timestamp](#timestamp) | ISO 8601 date
30deleted_at | [Timestamp](#timestamp)? | ISO 8601 date if the comment was deleted; null, otherwise
31edited_at | [Timestamp](#timestamp)? | ISO 8601 date if the comment was edited; null, otherwise
32edited_by_id | integer? | user id of the user that edited the post; null, otherwise
33id | integer | the ID of the comment
34legacy_name | string? | username displayed on legacy comments
35message | string? | markdown of the comment's content
36message_html | string? | html version of the comment's content
37parent_id | integer? | ID of the comment's parent
38pinned | boolean | Pin status of the comment
39replies_count | integer | Number of replies to the comment
40updated_at | [Timestamp](#timestamp) | ISO 8601 date
41user_id | integer | user ID of the poster
42votes_count | integer | Number of votes