Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Fieldset

Retrieve a fieldset

Returns

Returns a resource object of type fieldset

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const fieldsetId = "93Y1C2sySkG4Eg0atBRIwg";
const fieldset = await client.fieldsets.find(fieldsetId);
// Check the 'Returned output' tab for the result ☝️
console.log(fieldset);
}
run();
{
id: "93Y1C2sySkG4Eg0atBRIwg",
title: "SEO-related fields",
hint: "Please fill in these fields!",
position: 1,
collapsible: true,
start_collapsed: false,
item_type: { type: "item_type", id: "DxMaW10UQiCmZcuuA-IkkA" },
}