How to create BlockLists programmatically

Hello People.

I am trying to create BlockListItems programmatically and I cannot figure out how to do it, have tried searching the docs but I failed to find anything.

Can anyone help?

Hey @mdp-jf, it’s a little buried but hopefully this should help - https://docs.umbraco.com/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/block-editor/block-grid-editor#creating-a-block-grid-programmatically.

The docs say v16 but i used the same approach for a v 13 site.