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 |
{
"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",
}
]
}
To create a default image, use the following endpoint.
Method | URI | Headers |
---|---|---|
POST | default-thumbnails |
Default |
Parameter | Type | Detail |
---|---|---|
entity_type |
integer (required) |
The entity type id |
default_entity_image |
file |
File uploaded |
{success} Code 200 with JSON.
To delete a default image, use the following endpoint.
Method | URI | Headers |
---|---|---|
DELETE | default-thumbnails |
Default |
Parameter | Type | Detail |
---|---|---|
entity_type |
integer (required) |
The entity type id |
{success} Code 200 with JSON.