Sorry, no results found for "".
RFC 4122 UUID of fieldset expressed in URL-safe base64 format
"93Y1C2sySkG4Eg0atBRIwg"
Must be exactly "fieldset"
.
The title of the fieldset
"SEO-related fields"
Description/contextual hint for the fieldset
"Please fill in these fields!"
Ordering index
1
Whether the fieldset can be collapsed or not
When fieldset is collapsible, determines if the default is to start collapsed or not
Returns a resource object of type fieldset.
POST https://site-api.datocms.com/item-types/:model_id_or_api_key/fieldsets HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3Content-Type: application/vnd.api+json
{ "data": { "type": "fieldset", "attributes": { "title": "SEO-related fields" } }}
curl -g 'https://site-api.datocms.com/item-types/:model_id_or_api_key/fieldsets' \ -X POST \ -H "Authorization: Bearer YOUR-API-TOKEN" \ -H "Accept: application/json" \ -H "X-Api-Version: 3" \ -H "Content-Type: application/vnd.api+json" \ --data-binary '{"data":{"type":"fieldset","attributes":{"title":"SEO-related fields"}}}'
await fetch( "https://site-api.datocms.com/item-types/:model_id_or_api_key/fieldsets", { method: "POST", headers: { Authorization: "Bearer YOUR-API-TOKEN", Accept: "application/json", "X-Api-Version": "3", "Content-Type": "application/vnd.api+json", }, body: JSON.stringify({ data: { type: "fieldset", attributes: { title: "SEO-related fields" } }, }), },);
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" } } } }}