> ## Documentation Index
> Fetch the complete documentation index at: https://developer.plugchoice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# validation-failed

> Fields of the request break the rules.

| Status | Title |
| - | - |
| `422` | The request is invalid |

## What it means

The API read the request, but values in it break the rules. `errors` lists the fields, in the body or in the query string, by their path, each with a code and a message:

| `code` | |
| - | - |
| `missing-field` | A required field is missing. |
| `unknown-field` | The endpoint doesn't know this field. Check its spelling. |
| `invalid-type` | The value has the wrong type, such as a number where text belongs. |
| `invalid` | The value breaks a rule. `message` says which. |

## What to do

Fix the fields `errors` names, then send the request again.

## Example

```json theme={null}
{
  "type": "https://developer.plugchoice.com/api/errors/validation-failed",
  "title": "The request is invalid",
  "status": 422,
  "code": "validation-failed",
  "errors": [
    {
      "field": "limit",
      "code": "invalid",
      "message": "must be between 1 and 100"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.