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 fieldsetId = '124';const fieldset = await client.fieldsets.update(fieldsetId, {title: 'SEO-related fields',hint: 'Please fill in these fields!',position: 1,collapsible: true,start_collapsed: false});console.log(fieldset);}run();
{id: '124',title: 'SEO-related fields',hint: 'Please fill in these fields!',collapsible: true,start_collapsed: false,position: 1,item_type: {type: 'item_type',id: '44'}}