Validation Error Object
Validation errors
This type of error is returned when the request has a validation errors. This response will be part of an array that may contain other errors or successful responses. The error will be formatted like this:
{ "error": "<string", "_idx": <integer>, "validation_errors": [ { "field": "<string>", "error": "<string>", } ]}errorcode to identify the returned error_idxindexed of the object in the request array that raised this errorvalidation_errorsarray of validation errors, only returned when code is"validation_errors"fieldthe attribute of the object that caused this validation failure. If the validation failure is general to the object this will be"object"errorvalidation error code
Example
Returned when the requested change is not valid
{ "error": "validation_errors", "_idx": 2, "validation_errors": [ { "field": "email", "error": "must_be_unique" } ]}