Journals


All Journals

You can get a list of all the journals of a campaign 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 URI Headers
GET/HEAD journals Default

URL Parameters

The list of returned journals can be filtered. The available filters are available here: API filters.

Results

{
    "data": [
        {
            "id": 3,
            "name": "Session 2 - Descent into the Abyss",
            "entry": "\n<p>Lorem Ipsum</p>\n",
            "image": "{path}",
            "image_full": "{url}",
            "image_thumb": "{url}",
            "has_custom_image": false,
            "is_private": true,
            "entity_id": 42,
            "tags": [],
            "created_at":  "2019-01-30T00:01:44.000000Z",
            "created_by": null,
            "updated_at":  "2019-08-29T13:48:54.000000Z",
            "updated_by": 1,
            "author_id": 11,
            "date": "2017-11-02",
            "type": "Session"
        }
    ]
}

Journal

To get the details of a single journal, use the following endpoint.

Method URI Headers
GET/HEAD journals/{journal.id} Default

Results

{
    "data": {
        "id": 3,
        "name": "Session 2 - Descent into the Abyss",
        "entry": "\n<p>Lorem Ipsum</p>\n",
        "image": "{path}",
        "image_full": "{url}",
        "image_thumb": "{url}",
        "has_custom_image": false,
        "is_private": true,
        "entity_id": 42,
        "tags": [],
        "created_at":  "2019-01-30T00:01:44.000000Z",
        "created_by": null,
        "updated_at":  "2019-08-29T13:48:54.000000Z",
        "updated_by": 1,
        "author_id": 11,
        "date": "2017-11-02",
        "type": "Session"
    }

}

Create a Journal

To create a journal, use the following endpoint.

Method URI Headers
POST journals Default

Body

Parameter Type Detail
name string (Required) Name of the journal
entry string The html description of the journal
type string The journal's type
date string The date of the session
author_id string The "author" of the journal (entity id)
tags array Array of tag ids
image_url string URL to a picture to be used for the journal
entity_image_uuid string Gallery image UUID for the entity image (limited to superboosted campaigns)
entity_header_uuid string Gallery image UUID for the entity header (limited to superboosted campaigns)
is_private boolean If the journal is only visible to admin members of the campaign

Results

{success} Code 200 with JSON body of the new journal.

Update a Journal

To update a journal, use the following endpoint.

Method URI Headers
PUT/PATCH journals/{journal.id} Default

Body

The same body parameters are available as for when creating a journal.

Results

{success} Code 200 with JSON body of the updated journal.

Delete a Journal

To delete a journal, use the following endpoint.

Method URI Headers
DELETE journals/{journal.id} Default

Results

{success} Code 200 with JSON.