Structured text blocks content not returned

Hello, i have a webhook that will be called if one of my models will be published. My model contains Structured text with multiple blocks. But when the webhook is called the content of the blocks aren’t send with the data only the ID of the block.

Is this expected behaviour or is this a bug?

Below you can see my Structured text where Social Platform and Gerelateerde producten are blocks

Below you can see the data i get when the webhook is called.

"content": {
    "schema": "dast",
    "document": {
      "type": "root",
      "children": [
        {
          "type": "heading",
          "level": 3,
          "children": [
            {
              "type": "span",
              "value": "This heading will show"
            }
          ]
        },
        {
          "item": "31565969",
          "type": "block"
        },
        {
          "item": "31564523",
          "type": "block"
        },
        {
          "type": "paragraph",
          "children": [
            {
              "type": "span",
              "value": "This paragraph will show"
            }
          ]
        }
      ]
    }
  },

You can see that the paragraph and heading are visible but the blocks aren’t returning the value

Edit: This issue also occurs when doing standard api calls to the REST api

hello @algemeen sorry for the delay in getting back to you here.

Currently we only return the IDs of the blocks, but we are thinking about adding an option to the webhooks to send also the block content automatically.

1 Like