Kanka logo Kanka

Entity Notes


All Entity Notes

You can get a list of all the entity-notes of an entity by using the following endpoint.

{warning} Don't forget that all endpoints documented here need to be prefixed with api/1.0/campaigns/{campaign.id}/.

Method Endpoint Headers
GET/HEAD entities/{entity.id}/entity_notes Default

Results

{
    "data": [
        {
            "created_at": {
                "date": "2019-01-28 19:42:33.000000",
                "timezone_type": 3,
                "timezone": "UTC"
            },
            "created_by": 1,
            "entity_id": 69,
            "entry": "Lorem Ipsum",
            "id": 31,
            "is_private": true,
            "name": "Secret Note",
            "updated_at": {
                "date": "2019-01-28 19:42:33.000000",
                "timezone_type": 3,
                "timezone": "UTC"
            },
            "updated_by": null
        }
    ]
}

Entity Note

To get the details of a single entity-note, use the following endpoint.

Method Endpoint Headers
GET/HEAD entities/{entity.id}/entity_notes/{entity_note.id} Default

Results

{
    "data": {
        "created_at": {
            "date": "2019-01-28 19:42:33.000000",
            "timezone_type": 3,
            "timezone": "UTC"
        },
        "created_by": 1,
        "entity_id": 69,
        "entry": "Lorem Ipsum",
        "id": 31,
        "is_private": true,
        "name": "Secret Note",
        "updated_at": {
            "date": "2019-01-28 19:42:33.000000",
            "timezone_type": 3,
            "timezone": "UTC"
        },
        "updated_by": null
    }
}

Create an Entity Note

To create an entity-note, use the following endpoint.

Method Endpoint Headers
POST entities/{entity.id}/entity_notes Default

Body

Parameter Type Detail
name string (Required) Name of the entity-note
entry string The entity-note's entry (html)
entity_id integer (Required) The entity-note's parent entity
is_private boolean If the entity-note is only visible to admin members of the campaign

Results

{success} Code 200 with JSON body of the new entity-note.

Update an Entity Note

To update an entity-note, use the following endpoint.

Method Endpoint Headers
PUT/PATCH entities/{entity.id}/entity_notes/{entity_note.id} Default

Body

The same body parameters are available as for when creating an entity-note.

Results

{success} Code 200 with JSON body of the updated entity-note.

Delete an Entity Note

To delete an entity-note, use the following endpoint.

Method Endpoint Headers
DELETE entities/{entity.id}/entity_notes/{entity_note.id} Default

Results

{success} Code 200 with JSON.