Comment POST Resource

Create a Comment

Create question comment

POST /questions/:QUESTION_ID/comments

Create solution comment

POST /solutions/:SOLUTION_ID/comments
Parameter Type Required Description
description string (HTML + mentioning markup) The comment itself.

Payload

{
    "description": "Elementary, my dear Watson."
}

Response

{
    "id": 7,
    "description": "Elementary, my dear Watson.",
    "user": "/users/42",
    "created": "2013-12-13T16:45:13.000Z",
    "updated": "2013-12-13T16:45:14.000Z",
    "content_updated": "2013-12-13T16:45:15.000Z",
    "question": "/questions/42",
    "solution_id": null,
    "is_deleted": false,
    "promoted_solution": null,
    "upvote_count": 21
}