Search Storyblok's Documentation
  1. The Datasource Object

The Datasource Object

This is an object representing a datasource in a space.

Properties

  • id

    number

    The numeric ID of the datasource

  • name

    string

    The complete name provided for a datasource

  • slug

    string

    Slug of a datasource

  • dimensions

    object[]

    An array listing the dimensions (e.g., per country, region, language, or other context) defined for the datasource. While creating or updating dimensions inside datasources, a different key - dimensions_attributes should be used instead with name and entry_value .

    • id

      number

      The numeric ID

    • name

      string

      The complete name provided for the datasource

    • entry_value

      string

      The value provided for the datasource dimension (e.g., a language code)

    • datasource_id

      number

      The numeric ID of the datasource that the dimension belongs to

    • 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)

  • 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)

Example Object

{
    "datasource": {
        "id": 92,
        "name": "Background colors",
        "slug": "background-colors",
        "dimensions": [
            {
                "id": 58711,
                "name": "Spanish",
                "entry_value": "es",
                "datasource_id": 92,
                "created_at": "2023-07-03T09:19:03.495Z",
                "updated_at": "2023-07-03T09:26:22.375Z"
            }
        ],
        "created_at": "2023-07-03T06:37:28.078Z",
        "updated_at": "2023-07-03T06:37:28.078Z"
    }
}