1. The Preset Object

The Preset Object

This is an object representing a preset of a component inside a Storyblok space.

Properties

  • id

    number

    Numeric ID of your preset

  • name

    string

    Given name of your preset

  • preset

    object

    Fields of the component filled with content

  • component_id

    number

    The ID of the component the preset is for

  • space_id

    number

    Numeric ID of a space

  • created_at

    string

    Creation date (Format: yyyy-MM-dd'T'HH:mm:ssZ)

  • updated_at

    string

    Latest update date (Format: yyyy-MM-dd'T'HH:mm:ssZ)

  • image

    string or null

    Screenshot or other preview image for your editor; Default: null

  • color

    string

    Color of the preset icon

  • icon

    string

    Icon of the preset

  • description

    string

    A description of the preset for the editors

Example Object
{
    "preset": {
        "id": 1231,
        "name": "PresetGrid",
        "preset": {
           // fields of the component filled with content
            "headline": "preset grid creation",
        },
        "component_id": 1414141,
        "space_id": 123123,
        "created_at": "2023-08-22T19:31:04.103Z",
        "updated_at": "2023-08-22T19:31:04.103Z",
        "image": null,
        "color": "#00b3b0",
        "icon": "block-image",
        "description": null
    }
}