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

Notes

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

client notes:

{
    "status": "ok",
    "data": [
        {
            "id": 21,
            "user": {
                "id": 16,
                "name": "mariusz+signup@example.com",
                "avatar": "http://avatar.damnlist.com/avatar?text=mariusz+signup@example.com"
            },
            "content": "Test note 123",
            "createdAt": {
                "date": "2016-05-30 15:06:47",
                "timezone_type": 3,
                "timezone": "Europe/Berlin"
            }
        },
        {
            "id": 22,
            "user": {
                "id": 16,
                "name": "mariusz+signup@example.com",
                "avatar": "http://avatar.damnlist.com/avatar?text=mariusz+signup@example.com"
            },
            "content": "Test note 2",
            "createdAt": {
                "date": "2016-05-30 15:06:55",
                "timezone_type": 3,
                "timezone": "Europe/Berlin"
            }
        }
    ]
}

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

{
    "content": "Note text"
}

adding note:

{
    "status": "ok",
    "data": {
        "id": 23,
        "user": {
            "id": 16,
            "name": "mariusz+signup@example.com",
            "avatar": "http://avatar.damnlist.com/avatar?text=mariusz+signup@example.com"
        },
        "content": "Note text",
        "createdAt": {
            "date": "2016-05-30 15:09:28",
            "timezone_type": 3,
            "timezone": "Europe/Berlin"
        }
    }
}

DELETE '/list/{listId}/client/{clientId}/notes/{noteId}'

deleting note:

{
    "status": "ok"
}

Clone this wiki locally