Sorry, no results found for "".
Must be exactly "item".
"item"
The record's model
The entity (account/collaborator/access token/sso user) who created the record
1POST https://site-api.datocms.com/items/validate HTTP/1.12Authorization: Bearer YOUR-API-TOKEN3Accept: application/json4X-Api-Version: 35Content-Type: application/vnd.api+json6 7{8 "data": {9 "type": "item",10 "attributes": {11 "title": "My first blog post!",12 "content": "Lorem ipsum dolor sit amet...",13 "category": "24",14 "image": {15 "upload_id": "1235",16 "alt": "Alt text",17 "title": "Image title",18 "custom_data": {}19 }20 },21 "relationships": {22 "item_type": {23 "data": {24 "type": "item_type",25 "id": "DxMaW10UQiCmZcuuA-IkkA"26 }27 }28 }29 }30}
1curl -g 'https://site-api.datocms.com/items/validate' \2 -X POST \3 -H "Authorization: Bearer YOUR-API-TOKEN" \4 -H "Accept: application/json" \5 -H "X-Api-Version: 3" \6 -H "Content-Type: application/vnd.api+json" \7 --data-binary '{"data":{"type":"item","attributes":{"title":"My first blog post!","content":"Lorem ipsum dolor sit amet...","category":"24","image":{"upload_id":"1235","alt":"Alt text","title":"Image title","custom_data":{}}},"relationships":{"item_type":{"data":{"type":"item_type","id":"DxMaW10UQiCmZcuuA-IkkA"}}}}}'
1await fetch("https://site-api.datocms.com/items/validate", {2 method: "POST",3 headers: {4 Authorization: "Bearer YOUR-API-TOKEN",5 Accept: "application/json",6 "X-Api-Version": "3",7 "Content-Type": "application/vnd.api+json",8 },9 body: JSON.stringify({10 data: {11 type: "item",12 attributes: {13 title: "My first blog post!",14 content: "Lorem ipsum dolor sit amet...",15 category: "24",16 image: {17 upload_id: "1235",18 alt: "Alt text",19 title: "Image title",20 custom_data: {},21 },22 },23 relationships: {24 item_type: {25 data: { type: "item_type", id: "DxMaW10UQiCmZcuuA-IkkA" },26 },27 },28 },29 }),30});