Validation

Certain operations require records to follow business rules. When submitted records cannot be saved because of an issue a validation error will be returned.

Validation errors are specified with an HTTP status code 422 and list of error validation messages and their data fields.

HTTP/1.1 422 Unprocessable Entity

{
 "message" : "Validation error",   
 "validation_errors": [{
   "params": ["part[0][name]"],
   "messages": "can’t be blank"
  }]
}