POST /api/v1/test/test_note/issues/1/comments comment%5Bcomment%5D=Test+comment&mentions%5B%5D=test1 200 { "id": 9, "comment": "Test comment", "user_id": 3, "created_at": "2016-01-07T02:11:27.429Z", "updated_at": "2016-01-07T02:11:27.429Z", "user": { "id": 3, "username": "test", "receive_email": true, "created_at": "2016-01-07T02:11:18.000Z", "updated_at": "2016-01-07T02:11:27.000Z", "keyboard_shortcuts": false, "options": { "advanced_menu": true }, "html_url": "http://www.example.com/test", "avatar_url": "http://www.example.com/test/avatar", "lang": { "code": "en", "model": "lang" }, "name": "test", "model": "user" }, "mentions": [ { "id": 1, "username": "test1", "receive_email": true, "created_at": "2016-01-07T02:11:18.000Z", "updated_at": "2016-01-07T02:11:27.000Z", "keyboard_shortcuts": false, "html_url": "http://www.example.com/test1", "avatar_url": "http://www.example.com/test1/avatar", "lang": { "code": "ja", "model": "lang" }, "name": "test1", "model": "user" } ], "can_delete": true, "type": "issue", "issue": { "id": 12, "title": "Test issue", "is_done": false, "index": 1, "created_at": "2016-01-07T02:11:27.000Z", "updated_at": "2016-01-07T02:11:27.443Z", "position": 1, "rate": 0, "to_user": { "id": 3, "username": "test", "receive_email": true, "created_at": "2016-01-07T02:11:18.000Z", "updated_at": "2016-01-07T02:11:27.444Z", "keyboard_shortcuts": false, "options": { "advanced_menu": true }, "html_url": "http://www.example.com/test", "avatar_url": "http://www.example.com/test/avatar", "lang": { "code": "en", "model": "lang" }, "name": "test", "model": "user" }, "from_user": { "id": 3, "username": "test", "receive_email": true, "created_at": "2016-01-07T02:11:18.000Z", "updated_at": "2016-01-07T02:11:27.000Z", "keyboard_shortcuts": false, "options": { "advanced_menu": true }, "html_url": "http://www.example.com/test", "avatar_url": "http://www.example.com/test/avatar", "lang": { "code": "en", "model": "lang" }, "name": "test", "model": "user" }, "note": { "id": 601, "is_private": false, "slug": "test_note", "title": "Test note", "created_at": "2016-01-07T02:11:23.000Z", "updated_at": "2016-01-07T02:11:27.445Z", "format": "html", "share": "none", "is_time_track": true, "name": "test_note", "team": { "id": 533, "name": "test", "is_default": true, "created_at": "2016-01-07T02:11:18.000Z", "updated_at": "2016-01-07T02:11:27.446Z", "html_url": "http://www.example.com/test", "avatar_url": "http://www.example.com/test/avatar", "role": "manager", "managers": [ { "id": 3, "username": "test", "receive_email": true, "created_at": "2016-01-07T02:11:18.000Z", "updated_at": "2016-01-07T02:11:27.000Z", "keyboard_shortcuts": false, "options": { "advanced_menu": true }, "html_url": "http://www.example.com/test", "avatar_url": "http://www.example.com/test/avatar", "lang": { "code": "en", "model": "lang" }, "name": "test", "model": "user" } ], "members": [], "plan": "micro", "model": "team" }, "html_url": "http://www.example.com/test/test_note", "avatar_url": "http://www.example.com/test/test_note/avatar", "can_pull": false, "can_request": false, "can_manage": true, "description_html": "<p></p>", "model": "note" }, "label": "Issue #1 Test issue", "html_url": "http://www.example.com/test/test_note/issues/1", "can_manage": true, "tags": [], "description_html": "<p></p>", "model": "issue" }, "model": "comment" }
Param name | Description |
---|---|
comment optional |
Value: Must be a Hash |
comment[comment] required |
Value: Must be String |
mentions optional |
Usernames Value: Must be an array of String |