---
schema_version: "1"
id: b64746562d5de8bbafcdbd9f442aa1050ff1f59dac53522e5217beb1ac24377c
title: Minimal Values of the JSON
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_reference_admin_json_minimalvalue.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_reference_admin_json_minimalvalue.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3d3a2a8b10a9086dcc6a8524a6f81a868a0e813d84f1b60fc00b03decdcdbc5d
description: When the mandatory attributes aren’t present, the system throws an error when saving the custom JSON.
products:
  - Consumer Goods
release: "264"
---
# Minimal Values of the JSON

When the mandatory attributes aren’t present, the system throws an error when saving the custom JSON.

Sample code for reference with mandatory attributes for each JSON:

## Add Items JSON

```
{
 "addProducts": [
   {
     "fieldApiName": "Description_1__c",
     "objectApiName": "Product2",
     "isColumn": true,
     "isFilter": true
   },
   {
     "fieldApiName": "Unit_Type__c",
     "objectApiName": "Unit_of_Measure__c"
   },
   {
     "fieldApiName": "Type"
   }
 ]
}
```

## Free Items JSON

```
{
 "freeItems": [
   {
     "fieldApiName": "Product__r.Description_1__c",
     "objectApiName": "Order_Item__c"
   },
   {
     "fieldApiName": "Quantity__c",
     "objectApiName": "Order_Item__c"
   }
 ]
}
```

## Order Items JSON

```
{
  "orderItems": {
    "columnsConfiguration": [
      {
        "fieldApiName": "Product__r.Description_1__c",
        "objectApiName": "Order_Item__c",
        "visible": true
      },
      {
        "fieldApiName": "UoM__c",
        "objectApiName": "Order_Item__c"
      },
      {
        "editable": true,
        "fieldApiName": "Quantity__c",
        "fieldType": "number",
        "objectApiName": "Order_Item__c",
        "visible": true
      }
    ],
    "fixedColumns": 2,
    "maxNumberDeletes": 1000,
    "maxNumberUpdates": 1000
  }
}
```

## Order Details JSON

```
{
 "orderdetails": [
   {
     "fieldApiName": "Name",
     "objectApiName": "Order__c"
   }
 ]
}
```

## Order Page Header JSON

```
{
 "orderpageheader": [
   {
     "fieldApiName": "Order_Account__c",
     "objectApiName": "Order__c"
   }
 ]
}
```