Skip to main content
If you are organizing essential services or emergency response to COVID-19, activate your free account

Updates and imports not involving emails failing due to email validation errors

I've just come across some unexpected behaviour.

When using the people update API to update a precinct_code, e.g. with the payload:

{'person': {'precinct_name': 'Burton Bradstock'}}

I received a "400 Bad Request" with the response

{"code":"validation_failed","message":"Validation Failed.","validation_errors":["email 'clive@xxxxx.co.ukinvalid' should look like an email address"]}

The same thing happened with imports that didn't involve email addresses failing because of email validation errors.

 

Share this post

Showing 1 reaction

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.