Set product or category in the spotlight.
Field | Type | Description |
---|---|---|
enable | Bool | A boolean value |
title | String | A small message about the "promotion" |
type | String | String enumarion of 'product', 'category' |
id | Int | An integer value |
photo | Image? | Nullable. |
When used inside a request.
{
"enable": true,
"title": "...",
"type": "product",
"id": 14,
"photo": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
}
When returned in a response.
{
"enable": true,
"title": "...",
"type": "product",
"id": 12,
"photo": {
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"file_id": 13,
"white_background": true
}
}