Cannot edit content created by Write API

I was testing with Write API to create content using a Section model. The content was created successfully but when I try to edit it the visual editor I cannot drag & drop new blocks or edit/remove existing block. I don’t know if I did anything wrong. Here is the request body.

{
  "name": "Mr Talentino",
  "published": "published",
  "data": {
    "name": "Mr Talentino",
    "id": 9593,
    "handle": "mr-talentino",
    "blocks": [
      {
        "@type": "@builder.io/sdk:Element",
        "component": {
          "name": "HeroMedia",
          "options": {
            "withScrollDownButton": true,
            "loop": true,
            "muted": true,
            "playing": true,
            "withOverlay": true
          },
          "responsiveStyles" : {
            "large" :{
                "display": "flex",
                "flexDirection": "column",
                "position": "relative",
                "flexShrink": "0",
                "boxSizing": "border-box",
                "aspectRatio": "1.77777778"
            }
        }
        }
      }
    ]
  }
}

Hello @nghia.vi,

Could you share the model name for which you have created the content using write API?

Additionally, if you could share the builder content link would help us troubleshoot the issue further.

Thanks,

Here is the builder content link: Mr Talentino | Visual Editor | Builder.io
Anything I drag into the Visual Editor doesn’t change anything, styling and changing fields also have the same issue. On live page the Builder blocks not even visible. If you need the request payload I used to create content, I’d happy to provide.

Found the problem. I was passing incorrect model id in my codebase. Sorry for troubling you

1 Like