Content Management API > Record 
 Validates a record field
Body parameters
  type   string  Required 
 Must be exactly "item".
  relationships.creator.data   Optional 
 The entity (account/collaborator/access token/sso user) who created the record
Examples
POST https://site-api.datocms.com/items/validate HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3Content-Type: application/vnd.api+json
{  "data": {    "type": "item",    "attributes": {      "title": "My first blog post!",      "content": "Lorem ipsum dolor sit amet...",      "category": "24",      "image": {        "upload_id": "WxrWMPl3TjeSJYcl6lNCbg",        "alt": "Alt text",        "title": "Image title",        "custom_data": {}      }    },    "relationships": {      "item_type": {        "data": {          "type": "item_type",          "id": "DxMaW10UQiCmZcuuA-IkkA"        }      }    }  }}curl -g 'https://site-api.datocms.com/items/validate' \  -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":"item","attributes":{"title":"My first blog post!","content":"Lorem ipsum dolor sit amet...","category":"24","image":{"upload_id":"WxrWMPl3TjeSJYcl6lNCbg","alt":"Alt text","title":"Image title","custom_data":{}}},"relationships":{"item_type":{"data":{"type":"item_type","id":"DxMaW10UQiCmZcuuA-IkkA"}}}}}'await fetch("https://site-api.datocms.com/items/validate", {  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: "item",      attributes: {        title: "My first blog post!",        content: "Lorem ipsum dolor sit amet...",        category: "24",        image: {          upload_id: "WxrWMPl3TjeSJYcl6lNCbg",          alt: "Alt text",          title: "Image title",          custom_data: {},        },      },      relationships: {        item_type: {          data: { type: "item_type", id: "DxMaW10UQiCmZcuuA-IkkA" },        },      },    },  }),});