Skip to content

validation

HTTP 422 / 400 Invalid request

The body or a parameter is invalid. errors[] lists each problem with its path and a code (for example password.too_short, scopes.invalid, ip.invalid, range.too_long).

Fix each item in errors[] and send the request again.

Sending the same request again gives the same answer until the cause is fixed.

  • HTTP status: 422 Unprocessable Content, 400 Bad Request
  • Where you can meet it: Customer API (/v1), Customer portal
  • Code: validation (stable: match on the code, not on the title or detail text)
{
"type": "https://docs.zemodata.com/errors/validation",
"title": "Invalid request",
"status": 422,
"code": "validation",
"detail": "…",
"request_id": "req_01JD3K8ZQ4V6W9XG2M5N7P0R1S",
"errors": []
}

See Errors for how problem responses work, and all error codes.