Show examples in:
Update a fieldset

Body Parameters

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

Returns a fieldset resource object.

Examples

Example Basic example
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, {});
console.log(fieldset);
}
run();