VALIDATION_ERROR
The request body, query parameters, or path parameters failed schema validation.
typestringinvalid_request_error
statusnumber400
What happened
One or more fields in your request did not pass validation. The details array tells you exactly which fields failed and why. Fix them and retry.
{
"error": {
"type": "invalid_request_error",
"code": "VALIDATION_ERROR",
"message": "Invalid request",
"status": 400,
"doc_url": "https://docs.thewitn.com/docs/errors/validation-error",
"details": [
{
"path": "contract.price",
"message": "Number must be greater than 0"
}
]
}
}The details array
Each entry in details identifies one failing field:
| Field | Type | Description |
|---|---|---|
path | string | Dot-notation path to the field, e.g. contract.price. Array indices use bracket notation: conditions[0].event. |
message | string | Human-readable reason the field failed validation. |