Blocks are the simplest form of sub-content in an asset. Blocks have their own asset type, can be nested inside an asset, and have their own content and design. They can also be saved or loaded independently in Content Builder. Each block's assetType matches the individual block editing experience.

Add blocks to the asset as an object under blocks and to the content as a placeholder, where the object keys match the placeholder's data-key attribute. All blocks must be loaded inside of slots.

Min, max, allowed blocks

An asset can specify the minimum and maximum number of blocks, as well as the type of blocks allowed to live under it.

Add block attributes to the asset under as number, number, and array of strings under the minBlocks, maxBlocks, and allowedBlocks attributes, respectively. The array holds assetType names for the allowed blocks. This example requires exactly one follow-up link of the textblock type and at least one author.

Sample Asset with Blocks