Show examples in:
    Update a fieldset


    title  Optional  string  Example: "SEO-related fields"

    The title of the fieldset

    hint  Optional  string, null  Example: "Please fill in these fields!"

    Description/contextual hint for the fieldset

    position  Optional  integer  Example: 1

    Ordering index

    collapsible  Optional  boolean  Example: true

    Whether the fieldset can be collapsed or not

    start_collapsed  Optional  boolean

    When fieldset is collapsible, determines if the default is to start collapsed or not


    Returns a fieldset resource object.


    Example code:
    import { buildClient } from '@datocms/cma-client-node';
    async function run() {
    const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
    const fieldsetId = '93Y1C2sySkG4Eg0atBRIwg';
    const fieldset = await client.fieldsets.update(fieldsetId, {
    title: 'SEO-related fields',
    hint: 'Please fill in these fields!',
    position: 1,
    collapsible: true,
    start_collapsed: false
    Returned output:
    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'