Thumbnails


All Thumbnails

You can get a list of all the default thumbnails of a campaign by using the following endpoint. This is a premium campaign feature! If the campaign isn't premium, this API endpoint will result in a 404.

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

Method URI Headers
GET/HEAD default-thumbnails Default

Results

{
    "data": [
        {
            "entity_type": "abilities",
            "url": "https://th.kanka.io/gR8y1nxfEhBC1nVYdQpr2pUW3lY=/48x48/smart/src/app/logos/logo.png",
        },
        {
            "entity_type": "creatures",
            "url": "https://th.kanka.io/gR8y1nxfEhBC1nVYdQpr2pUW3lY=/48x48/smart/src/app/logos/logo.png",
        }
    ]
}

Create a Default Image

To create a default image, use the following endpoint.

Method URI Headers
POST default-thumbnails Default

Body

Parameter Type Detail
entity_type integer(required) The entity type id
default_entity_image file File uploaded

Results

{success} Code 200 with JSON.

Delete a Default Image

To delete a default image, use the following endpoint.

Method URI Headers
DELETE default-thumbnails Default

Body

Parameter Type Detail
entity_type integer(required) The entity type id

Results

{success} Code 200 with JSON.