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.
| Method | URI | Headers |
|---|---|---|
| GET/HEAD | 1.0/campaigns/{id}/default-thumbnails |
Default |
{
"data": [
{
"entity_type": "abilities",
"url": "https://th.kanka.io/gR8y1nxfEhBC1nVYdQpr2pUW3lY=/48x48/smart/src/app/logos/logo.png",
},
{
"entity_type": "gods",
"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_id |
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_id |
integer(required) |
The entity type id |
{success} Code 200 with JSON.