{"id":505,"date":"2025-04-09T17:23:41","date_gmt":"2025-04-09T17:23:41","guid":{"rendered":"http:\/\/gogetmuscle.com\/?p=505"},"modified":"2025-04-09T17:39:39","modified_gmt":"2025-04-09T17:39:39","slug":"get-batch-contact-api-to-drop-contacts-that-that-fail-validation","status":"publish","type":"post","link":"http:\/\/gogetmuscle.com\/index.php\/2025\/04\/09\/get-batch-contact-api-to-drop-contacts-that-that-fail-validation\/","title":{"rendered":"Get Batch Contact Api to Drop contacts that that fail validation"},"content":{"rendered":"

I’m importing a bunch of contacts to hubspot using upsert from the contact batch api.<\/P>

\u00a0<\/P>

There are some garbage email addresses in my database.\u00a0 When the hubspot api encounters a bad email in the batch, it returns a 400 for a whole batch it seems.<\/P>

\u00a0<\/P>

Is there a way to get the hubspot api to just drop the contacts that fail email validation and just push the good ones through?<\/P>

\u00a0<\/P>

I’m thinking my only option is to parse the error response, drop the email from my original request, then resend the request.<\/P>

\u00a0<\/P>

\u00a0<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"

I’m importing a bunch of contacts to hubspot using upsert from the contact batch api.\u00a0There are some garbage email addresses in my database.\u00a0 When the hubspot api encounters a bad email in the batch, it returns a 400 for a whole batch it seems.\u00a0Is there a way to get the hubspot api to just drop […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/505"}],"collection":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/comments?post=505"}],"version-history":[{"count":1,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/505\/revisions"}],"predecessor-version":[{"id":506,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/505\/revisions\/506"}],"wp:attachment":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/media?parent=505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/categories?post=505"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/tags?post=505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}