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": false,
"title": "...",
"type": "product",
"id": 11,
"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": true
}
}
When returned in a response.
{
"enable": true,
"title": "...",
"type": "product",
"id": 18,
"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": 17,
"white_background": true
}
}