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": [
        15,
        12,
        17
    ],
    "id": 12,
    "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": true
    }
}

Response

When returned in a response.

Example 1

{
    "name": "...",
    "category_ids": [
        18,
        10,
        18
    ],
    "id": 13,
    "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": 10,
        "white_background": false
    }
}
This is a development version Do not use this version in production
1.10.0 development