Creates a new comment.
https://Your project.userecho.com/api/v2/topics/[topic_id]/comments.json
Parameter | Value | Required? | Default | Options | Description |
---|---|---|---|---|---|
comment | String | yes (no, if topic_status_id passed) | Comment text | ||
parent_id | Integer | no | null | Parent comment ID | |
privacy_mode | Integer | no | 1 |
1 - public
2 - author and support agents 3 - support agents only |
Who's able to see the comment? |
is_answer | Boolean | no | false | Mark comment as official answer | |
topic_status_id | Integer | no | Use if you want to change topic status |
{
"comment" : "Test comment"
}
{
"comment" : "Test comment",
"parent_id" : 10,
"is_public": false
}
{
"status": "success",
"data": {
"comment": "Test
",
"status": 0,
"created": "2014-03-17T02:58:09.937Z",
"author": {
"avatar_url": "https://secure.gravatar.com/avatar/f70e785b1cb1a52832e763df9ddf8e0c?default=https%3A%2F%2Fcdn.userecho.com%2Fimages%2Fno_avatar_48.jpg&s=48",
"id": 1,
"name": "Vladimir Mullagaliyev",
"title": ""
},
"parent_id": null,
"vote": {
"diff": 0,
"positive": 0,
"total": 0,
"negative": 0
},
"is_public": true,
"id": 4438
}
}