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

# validation-failed

> The request body is not valid.

**Status 422.** The request body is not valid.

The response is `application/problem+json`, and its `type` is
`https://docs.andteam.com/api/problems/validation-failed`:

```json theme={null}
{
  "type": "https://docs.andteam.com/api/problems/validation-failed",
  "title": "The request body is not valid",
  "status": 422,
  "detail": "Fix the fields in `errors` and send it again.",
  "errors": [
    {
      "pointer": "/endDate",
      "code": "invalid-dates",
      "detail": "The last day is before the first."
    }
  ]
}
```

## What it means

The request body is wrong. `errors` lists every field at once: `pointer` (a JSON Pointer into the body), `code` and `detail`. Nothing was written.

## What to do

Correct each field `errors` names and send the request again, with a new `Idempotency-Key`.

See [Errors](https://docs.andteam.com/errors.md) for every type.


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