Dictionary

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.

Examples

Request

When used inside a request.

Example 1

{
    "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
    }
}

Response

When returned in a response.

Example 1

{
    "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
    }
}
1.9.0 stable