Solution POST Resources

Create a Solution

POST /questions/:QUESTION_ID/solutions
{
    "description": "<p>There are some reports about him traveling through Europe</p>"
}
Parameter Type Required Description
description string (HTML + mentioning markup) Unlimited length.

Be aware that this will not publish the solution, it will be saved as a draft. It can be published with the solution publish endpoint.

Response

{
    "id": 55,
    "is_published": false,
    "published": null,
    "rating": null,
    "rating_count": 0,
    "description": "<p>There are some reports about him traveling through Europe.</p>",
    "user": "/users/97",
    "is_deleted": false,
    "created": "2013-12-13T16:40:21.000Z",
    "updated": "2013-12-13T16:42:22.000Z",
    "content_updated": "2013-12-13T16:42:22.000Z",
    "question": "/questions/47",
    "attachments": "/solutions/55/attachments",
    "validity_period": null,
    "expires": null,
    "upvote_count": 0,
    "accepted_by_question_poser": "2014-04-02T15:42:41.000Z"
}