The record's model
The entity (account/collaborator/access token/sso user) who created the record. It must be an object with type
(e.g. 'account') and id
properties.
import { buildClient } from '@datocms/cma-client-node';async function run() {const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });await client.items.validateNew({title: 'My first blog post!',content: 'Lorem ipsum dolor sit amet...',category: '24',image: {upload_id: '1235',alt: 'Alt text',title: 'Image title',custom_data: {}},item_type: {type: 'item_type',id: 'DxMaW10UQiCmZcuuA-IkkA'}});}run();