Content Management API > Fieldset
Retrieve a fieldset
Query parameters
fields object
Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
fieldset string
Attributes and relationships to return for each fieldset that this endpoint returns.
Example:
"title,hint,collapsible,item_type"
Returns
Returns a resource object of type fieldset.
Examples
GET https://site-api.datocms.com/fieldsets/:fieldset_id HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3curl -g 'https://site-api.datocms.com/fieldsets/:fieldset_id' \ \ -H "Authorization: Bearer YOUR-API-TOKEN" \ -H "Accept: application/json" \ -H "X-Api-Version: 3"await fetch("https://site-api.datocms.com/fieldsets/:fieldset_id", { headers: { Authorization: "Bearer YOUR-API-TOKEN", Accept: "application/json", "X-Api-Version": "3", },});HTTP/1.1 200 OKContent-Type: application/jsonCache-Control: cache-control: max-age=0, private, must-revalidateX-RateLimit-Limit: 30X-RateLimit-Remaining: 28
{ "data": { "type": "fieldset", "id": "93Y1C2sySkG4Eg0atBRIwg", "attributes": { "title": "SEO-related fields", "hint": "Please fill in these fields!", "position": 1, "collapsible": true, "start_collapsed": false }, "relationships": { "item_type": { "data": { "type": "item_type", "id": "DxMaW10UQiCmZcuuA-IkkA" } } } }}