Skip to main content

validation_type_mismatch

HTTP Status: 422 Category: Validation

When you see this

Field value has the wrong JSON type.

How to fix it

Consult error.details.errors[].field for the path and coerce the value to the expected type before retrying.

Example response

{
"error": {
"code": "validation_type_mismatch",
"message": "Field value has the wrong JSON type.",
"hint": null,
"doc_url": "https://docs.valara.cloud/api-reference/errors/validation_type_mismatch",
"request_id": "req_01H...",
"details": {
"errors": [],
"field_count": 0
}
}
}