Since API version 1.0.
| Field | Value |
|---|---|
| Type | invalid_request |
| Status | 400 |
| Surfaces | api |
| Retryable | No |
What it means
Section titled “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
Section titled “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
Section titled “How to fix it”For developers
Section titled “For developers”- Read
messageandparam, then compare the field with the operation’s schema in the API reference. - Send
Content-Typeapplication/jsonand a single JSON object with no trailing data. - Use an official SDK where possible; it builds bodies that match the schema.
Example
Section titled “Example”HTTP status 400 for a body whose name is a number:
{ "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
Section titled “Developer message”A value sent isn’t valid; param names its field when it is known
IT administrator message
Section titled “IT administrator message”One of the values sent isn’t valid
Translated IT administrator messages
Section titled “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: Einer der gesendeten Werte ist ungültiges: Uno de los valores enviados no es válidofr: L’une des valeurs envoyées n’est pas valideja: 送信された値のいずれかが無効ですpt-BR: Um dos valores enviados não é válido