Product Updates

DatoCMS changelog for new features and general improvements
Content Management APIAPI Clients
Deprecation notice on our Content Management API
December 18th, 2019

Starting from February 1st, 2020, it will no longer possible to directly create, duplicate, update or delete modular block items using the following endpoints:

  • POST /items

  • PUT /items/:id

  • POST /items/:id/duplicate

  • DELETE /items/:id

  • DELETE /items/

The only supported way to perform any operation on modular block items will be by updating a modular content field on the parent item.

For example, to create an item with two modular blocks inside its modular content field:

import { SiteClient, buildModularBlock } from 'datocms-client';
const client = new SiteClient('YOUR_TOKEN');
itemType: '111',
content: [
buildModularBlock(text: "Foo", itemType: '222'),
buildModularBlock(text: "Bar", itemType: '222'),

This change is required to ensure atomic, reliable operations on content.