# Some fields are not valid

The API answered `400` or `422` with the problem key `validation_failed`.

## What to do

Fix the input: `errors` and `detail` say which. The `detail` member names the cause this time.

## The problem body

Every problem is JSON of type `application/problem+json` (RFC 9457) with these members, so a client can branch on `key` and read `detail`.

| Member | Meaning |
|---|---|
| `type` | `https://pagelemon.com/docs/errors/validation-failed`, this page |
| `key` | `validation_failed` |
| `status` | `400` or `422` |
| `title` | What went wrong, short, in the caller's language |
| `detail` | What happened this time, in plain words |
| `request_id` | Quote this when you ask for help |
| `claim` | Extra member of this problem |
| `claim_url` | Extra member of this problem |
| `emails` | Extra member of this problem |
| `errors` | Extra member of this problem |
| `expected_bytes` | Extra member of this problem |
| `field` | Extra member of this problem |
| `fields` | Extra member of this problem |
| `file` | Extra member of this problem |
| `files` | Extra member of this problem |
| `got_bytes` | Extra member of this problem |
| `groups` | Extra member of this problem |
| `minimum_user_age` | Extra member of this problem |
| `offered` | Extra member of this problem |
| `options` | Extra member of this problem |
| `plans` | Extra member of this problem |
| `policy_url` | Extra member of this problem |
| `promo_error` | Extra member of this problem |
| `refused` | Extra member of this problem |
| `rule` | Extra member of this problem |
| `tries_left` | Extra member of this problem |
| `why` | Extra member of this problem |

All errors are listed at [API errors](/docs/errors/).
