Sorry, no results found for "".
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.
PUT https://site-api.datocms.com/fieldsets/:fieldset_id HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3Content-Type: application/vnd.api+json
{ "data": { "type": "fieldset", "id": "93Y1C2sySkG4Eg0atBRIwg", "attributes": {} }}
curl -g 'https://site-api.datocms.com/fieldsets/:fieldset_id' \ -X PUT \ -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","id":"93Y1C2sySkG4Eg0atBRIwg","attributes":{}}}'
await fetch("https://site-api.datocms.com/fieldsets/:fieldset_id", { method: "PUT", 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", id: "93Y1C2sySkG4Eg0atBRIwg", attributes: {} }, }),});
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" } } } }}