Status Code 400
Validation Error Object
- Path: The path to the property that caused the validation error.
- Code: The validation error (refer to the table below).
- Message: The error message.
- Data: Metadata related to the validation error code.
- The properties in the metadata will vary depending on the validation error code.
Code | Error |
---|---|
0 | Invalid |
1 | Invalid JSON |
2 | Required |
3 | Max Length |
4 | Min Length |
5 | Greater Than |
6 | Greater Than or Equal |
7 | Less Than |
8 | Less Than or Equal |
9 | Read Only |
10 | Format |
11 | Empty Request Body |
12 | Unsupported Value |
13 | Type Conversion |
14 | One Parameter Required |
15 | Invalid XML |
16 | Unsupported Operator |
100 | Import XML |
Sample Response
{
"status": {
"code": 400,
"message": "Validation Error"
},
"errors": [
{
"path": "Promise_Date",
"code": 9,
"message": "Read-Only",
"data": {
"PropertyName": "Promise_Date",
"PropertyValue": "2019-09-13T00:00:00"
}
}
]
}
Updated about 3 years ago