Skip to content

support

damnlist edited this page Jul 1, 2016 · 1 revision

Support

GET '/list/{listId}/client/{clientId}/support'

Get support feed from client card:

{
    "status": "ok",
    "data": [
        {
            "id": 442,
            "user": {
                "id": 1,
                "name": "Administrator",
                "avatar": "http://avatar.damnlist.com/avatar?text=Administrator"
            },
            "content": "test2",
            "solving": false,
            "createdAt": {
                "date": "2016-05-31 09:19:15",
                "timezone_type": 3,
                "timezone": "Europe/Berlin"
            }
        },
        {
            "id": 441,
            "user": {
                "id": 1,
                "name": "Administrator",
                "avatar": "http://avatar.damnlist.com/avatar?text=Administrator"
            },
            "content": "test1",
            "solving": false,
            "createdAt": {
                "date": "2016-05-31 09:19:11",
                "timezone_type": 3,
                "timezone": "Europe/Berlin"
            }
        }
    ]
}

POST '/list/{listId}/client/{clientId}/support'

{
	"content": "test 3"
}

Add answer to the feed:

{
    "status": "ok",
    "data": {
        "id": 443,
        "user": {
            "id": 1,
            "name": "Administrator",
            "avatar": "http://avatar.damnlist.com/avatar?text=Administrator"
        },
        "content": "test 3",
        "solving": false,
        "createdAt": {
            "date": "2016-05-31 09:21:21",
            "timezone_type": 3,
            "timezone": "Europe/Berlin"
        }
    }
}

DELETE '/list/{listId}/client/{clientId}/support/{supportId}'

Delete message from the feed:

{
    "status": "ok"
}

PUT '/list/{listId}/client/{clientId}/support/solve'

mark problem as solved:

{
    "status": "ok"
}

Clone this wiki locally