HTTP 400 · MALFORMED_PAYLOAD

Bad Request

POST /api/v2/users — validation failed

▮ Submitted payload

{
  "user_id": "u_4a8b2",
  "email": "not-an@email", // invalid format
  "age": "thirty",     // expected number
  "created": "yesterday", // expected ISO 8601
  "role": "super-admin" // not in enum
}
    ^ trailing comma not allowed
▮ Validation errors (4)
[L3]email: must match email format
[L4]age: expected number, got string
[L5]created: expected ISO 8601 date
[L6]role: must be one of [user, admin]

Four fields in your payload did not pass validation. The server returned 400 without processing the request. None of your data was modified.

# schema: /api/v2/users.schema.json← back