Skip to content
damnlist edited this page Jul 1, 2016 · 1 revision

Files - Client card

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

list of client files:

{
    "status": "ok",
    "data": [
        {
            "id": 124,
            "fileName": "test (2).pdf",
            "size": 418012,
            "createdAt": {
                "date": "2016-05-31 09:29:17",
                "timezone_type": 3,
                "timezone": "Europe/Berlin"
            }
        }
    ]
}

GET '/list/{listId}/client/{clientId}/files/{fileId}'

get file

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

parameter POST 'file' with file, returns:

{
    "status": "ok",
    "data": {
        "id": 125,
        "fileName": "test (2).pdf",
        "size": 418012,
        "createdAt": {
            "date": "2016-05-31 09:31:58",
            "timezone_type": 3,
            "timezone": "Europe/Berlin"
        }
    }
}

DELETE '/list/{listId}/client/{clientId}/files/{fileId}'

delete the file:

{
    "status": "ok"
}