APIs & Integrations

ABenyamin
Member

/contacts/v1/contact/batch/ returns 202 when email is duplicate

Hey, 

I'm trying to update a contact with an email that already exists in another contact. This should obviously fail, however recently this API started to return 202 for this requests. The contact itself didn't update as expected, but the valid response is falsy.

 

Example body:

 

 

[
  {
    "vid": 10051,
    "properties": [
      {
        "property": "email",
        "value": "some.duplicate@email.com"
      }
    ]
  }
]

 

 

As mentioned in your documentation this requests should return 400, since nothing happend due to this duplicated emails. This seems to be a regression. Other errors working as expected.  Also, in case multiple records sent in the body - the valid one does get updated, which is also a change, since it's clearly mentioned the whole batch should fail in case of a failure in one of the records.

0 Upvotes
1 Reply 1
Jaycee_Lewis
Community Manager
Community Manager

/contacts/v1/contact/batch/ returns 202 when email is duplicate

Hi, @ABenyamin 👋 I'll flag this for our internal resources to take a look at.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes