Skip to content

customFields

damnlist edited this page Jul 1, 2016 · 1 revision

Additional fields

GET '/list/{listId}/customFields'

list of additional fields on the list:

{
    "status": "ok",
    "data": [
        {
            "id": 13,
            "name": "Custom field 1",
            "createAt": {
                "date": "2016-05-30 14:14:07",
                "timezone_type": 3,
                "timezone": "Europe/Berlin"
            },
            "forAll": true,
            "client_id": null
        },
        {
            "id": 14,
            "name": "Custom field 2",
            "createAt": {
                "date": "2016-05-30 14:14:14",
                "timezone_type": 3,
                "timezone": "Europe/Berlin"
            },
            "forAll": true,
            "client_id": null
        }
    ]
}

POST '/list/{listId}/customFields'

{
    "name": "Custom field 3"
}
{
    "name":"Custom field single",
    "client_id":89
}

Adding additional field with client_id parameter if we want to add this field only to single client card

{
    "status": "ok",
    "data": {
        "id": 15,
        "name": "Custom field 3",
        "createAt": {
            "date": "2016-05-30 14:15:45",
            "timezone_type": 3,
            "timezone": "Europe/Berlin"
        },
        "forAll": true,
        "client_id": null
    }
}

DELETE '/list/{listId}/customFields/{customFieldId}'

deleting additional field:

{
    "status": "ok"
}

Clone this wiki locally