The title of the fieldset
Description/contextual hint for the fieldset
Ordering index
Whether the fieldset can be collapsed or not
When fieldset is collapsible, determines if the default is to start collapsed or not
import { buildClient } from '@datocms/cma-client-node';async function run() {const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });const modelIdOrApiKey = 'blog_post';const fieldset = await client.fieldsets.create(modelIdOrApiKey, {title: 'SEO-related fields',hint: 'Please fill in these fields!',position: 1,collapsible: true,start_collapsed: false});console.log(fieldset);}run();
{id: '93Y1C2sySkG4Eg0atBRIwg',title: 'SEO-related fields',hint: 'Please fill in these fields!',collapsible: true,start_collapsed: false,position: 1,item_type: {type: 'item_type',id: 'DxMaW10UQiCmZcuuA-IkkA'}}