# WhatsApp API Error MIN_ITEMS_REQUIRED and MIN_CHARS_REQUIRED in Flow JSON
Author: Prashant Jangid
Author URL: https://www.heltar.com/blogs/author/prashant-jangid
Published: 2025-03-31
Category: Troubleshoot
Category URL: https://www.heltar.com/blogs/category/troubleshoot
Tags: WhatsApp Flows Error
Tag URLs: WhatsApp Flows Error (https://www.heltar.com/blogs/tag/whatsapp-flows-error)
URL: https://www.heltar.com/blogs/whatsapp-api-error-minitemsrequired-and-mincharsrequired-in-flow-json-cm8wuyyhe009h4w8i01a8b3gj

The **MIN\_ITEMS\_REQUIRED** and **MIN\_CHARS\_REQUIRED** errors occur when a property in your Flow JSON does not meet the required minimum length or item count. These errors indicate that a field is either empty or does not contain enough elements to be valid.

### Error Message Examples

- _MIN\_ITEMS\_REQUIRED:_ _Property '${propertyName}' should have at least '${minQuantityCount}' ${quantityUnit}._
- _MIN\_CHARS\_REQUIRED:_ _Property '${propertyName}' should have at least '${minQuantityCount}' ${quantityUnit}._

### Understanding the Issue

#### Example 1: MIN\_CHARS\_REQUIRED

```
{
  "screens": [
    {
      "id": ""
    }
  ]
}
```

Here, the id property is required to have at least one character, but it is empty ("").

#### Example 2: MIN\_ITEMS\_REQUIRED

```
{
  "version": "2.1",
  "screens": []
}
```

In this case, the screens array is empty, but it must contain at least one item.

### Common Causes of These Errors

1. Empty Strings in Required Fields


   - Incorrect: "id": ""

   - Correct: "id": "screen\_123"


3. Missing Items in Arrays


   - Incorrect: "screens": \[\]

   - Correct: "screens": \[{ "id": "screen\_1" }\]


5. Forgetting to Populate Required Fields


   - Ensure that all required fields contain valid values before submitting the JSON.

### How to Fix These Errors

- Check the Error Message: Identify whether the issue is a missing character count or a missing array item.

- Review the Required Minimums: Refer to the Flow JSON documentation to understand the required values.

- Update the JSON: Ensure all fields contain valid data with the required minimum characters or items.


### Fixed JSON Examples

#### Fix for MIN\_CHARS\_REQUIRED

```
{
  "screens": [
    {
      "id": "screen_1"
    }
  ]
}
```

#### Fix for MIN\_ITEMS\_REQUIRED

```
{
  "version": "2.1",
  "screens": [
    {
      "id": "screen_1"
    }
  ]
}
```

By following these steps, you can prevent **MIN\_ITEMS\_REQUIRED** and **MIN\_CHARS\_REQUIRED** errors and ensure your Flow JSON is properly formatted.

For more insights related to WhatsApp Business API, check out [heltar.com/blogs](http://heltar.com/blogs).


---
This blog is powered by Superblog. Visit https://superblog.ai to know more.
---

