Discussion URL

Response: HTTP 200, application/json (Hide)
POST /projects/1/discussions

Payload:

1
2
3
4
{
    "name": "Test Discussion",
    "body": "Discuss"
}

Response:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
    "single": {
        "id": 1,
        "class": "Discussion",
        "url_path": "\/projects\/1\/discussions\/1",
        "name": "Test Discussion",
        "comments_count": 0,
        "attachments": [],
        "is_trashed": false,
        "trashed_on": null,
        "trashed_by_id": 0,
        "project_id": 1,
        "is_hidden_from_clients": false,
        "body": "Discuss",
        "body_formatted": "Discuss",
        "created_on": 1430164045,
        "created_by_id": 1,
        "updated_on": 1430164045,
        "updated_by_id": 1
    },
    "subscribers": [
        1
    ],
    "comments": []
}
Response: HTTP 200, application/json (Hide)
GET /projects/1/discussions/1

Response:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
    "single": {
        "id": 1,
        "class": "Discussion",
        "url_path": "\/projects\/1\/discussions\/1",
        "name": "Test Discussion",
        "comments_count": 0,
        "attachments": [],
        "is_trashed": false,
        "trashed_on": null,
        "trashed_by_id": 0,
        "project_id": 1,
        "is_hidden_from_clients": false,
        "body": "Discuss",
        "body_formatted": "Discuss",
        "created_on": 1430164045,
        "created_by_id": 1,
        "updated_on": 1430164045,
        "updated_by_id": 1
    },
    "subscribers": [
        1
    ],
    "comments": []
}
Response: HTTP 404, text/html
GET /projects/2/discussions/1