# parameter_invalid

<!-- Generated by scripts/generate.ts. Do not edit. -->

<!-- Source: core commit `f70874a3916ad5b24a8619246cbae6cc8bc24d27`. -->

<div data-pagefind-ignore>

Since API version `1.0`.

| Field     | Value             |
| --------- | ----------------- |
| Type      | `invalid_request` |
| Status    | 400               |
| Surfaces  | `api`             |
| Retryable | No                |

</div>

## What it means

A value in the request is not valid. The message names the field and says what is wrong with it, such as the wrong JSON type or a body that is not valid JSON. `param` names the field when OhAuthCat knows it.

## Likely causes

- A field has the wrong JSON type, for example a number where the schema expects a string.
- The request body is not valid JSON, or it was cut off.
- The body has an unknown field, a duplicate key or trailing data after the JSON object.
- A value breaks a rule of the operation, such as a length limit or a format.

## How to fix it

### For developers

- Read `message` and `param`, then compare the field with the operation's schema in the [API reference](/reference/api/).
- Send `Content-Type` `application/json` and a single JSON object with no trailing data.
- Use an official SDK where possible; it builds bodies that match the schema.

## Example

HTTP status 400 for a body whose `name` is a number:

```json
{
  "error": {
    "type": "invalid_request",
    "code": "parameter_invalid",
    "message": "`name` has the wrong type: expected a string, got a JSON number",
    "param": "name",
    "doc_url": "https://docs.ohauthcat.com/errors/parameter_invalid",
    "request_id": "req_01J9Z3K5V7W8X9Y0Z1A2B3C4D5"
  }
}
```

## Developer message

A value sent isn't valid; `param` names its field when it is known

## IT administrator message

One of the values sent isn't valid

## Translated IT administrator messages

The hosted portal shows these machine translations, which native speakers have not reviewed yet. Placeholders and identity provider console labels stay in English.

- `de`: <span lang="de" data-pagefind-ignore>Einer der gesendeten Werte ist ungültig</span>
- `es`: <span lang="es" data-pagefind-ignore>Uno de los valores enviados no es válido</span>
- `fr`: <span lang="fr" data-pagefind-ignore>L'une des valeurs envoyées n'est pas valide</span>
- `ja`: <span lang="ja" data-pagefind-ignore>送信された値のいずれかが無効です</span>
- `pt-BR`: <span lang="pt-BR" data-pagefind-ignore>Um dos valores enviados não é válido</span>
