Comment
Field | Type | Description |
---|---|---|
id |
int |
Unique identifier for the comment. |
description |
string (HTML + mentioning markup) |
The comment itself. |
user |
resource |
User who wrote the comment. |
created |
datetime |
Creation date of the comment. |
updated |
datetime |
Last time the comment has been updated in the DB.
This date does not reflect content updates
but any update to any fields of the record.
Use content_updated for information about
content updates.
|
content_updated |
datetime |
Date the comment content (description) has been updated. |
question |
resource |
Parent question of the comment. |
solution_id |
integer | null |
If this comment belongs to a particular solution, then this field contains the id of that solution. If the comment was made directly on the question itself, then this field is null . |
promoted_solution |
int |
Id of the solution to which the comment has been promoted or null |
is_deleted |
bool |
Whether or not the comment has been removed. |
Note: The user
field might be null
if the comment author is also the poser of the question, as explained in the anonymity section.
{
"id": 7,
"description": "Elementary, my dear Watson.",
"user": "/users/42",
"created": "2013-12-13T16:45:13.000Z",
"updated": "2013-12-13T16:45:13.000Z",
"content_updated": "2013-12-13T16:45:13.000Z",
"question": "/questions/42",
"solution_id": null,
"is_deleted": false,
"promoted_solution": null
}