CategoryGroup

Field Type Description
name String Category group name
category_ids [Int] Ids of the categories in this group
id Int A ID for this category group.
image Image? Nullable.

Examples

Request

When used inside a request.

Example 1

{
    "name": "...",
    "category_ids": [
        17,
        13,
        18
    ],
    "id": 10,
    "image": {
        "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
    }
}

Response

When returned in a response.

Example 1

{
    "name": "...",
    "category_ids": [
        14,
        10,
        17
    ],
    "id": 16,
    "image": {
        "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": 18,
        "white_background": true
    }
}
1.9.0 stable