APIs & Integrations

ArturRod
Member

Conflict error while trying to update contact email

SOLVE

I'm trying to update a contact via API, but every time I try to update the contact email I'm getting this error:

{
"status": "error",
"message": "A contact with the email 'email@email.com.br' already exists.. Existing ID: 1234567",
"correlationId": "b3c4654a-81db-424a-ac4b-d918c87062dd", "category": "CONFLICT"
}

Any idea what's going on?

0 Upvotes
1 Accepted solution
JBeatty
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Conflict error while trying to update contact email

SOLVE

Hi @ArturRod,

 

Running this example request I was only able to get the same error code if the email field matched that of an existing contact. Basically, you were trying to update a contact to have an identical email to that of another contact, but emails are unique between all contacts in a hubspot account, so hubspot would not let you, as then there would be two contacts with the same email.

 

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

View solution in original post

5 Replies 5
JBeatty
Guide | Diamond Partner
Guide | Diamond Partner

Conflict error while trying to update contact email

SOLVE

Hi @ArturRod,

 

This could be a few things, could you share the endpoint you are calling, and your request body?

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

ArturRod
Member

Conflict error while trying to update contact email

SOLVE

Of course @JBeatty 

The endpoint: 

https://api.hubapi.com/crm/v3/objects/contacts/9948901?hapikey=

 

The request body:

{
  "properties": {
    "lifecyclestage": "opportunity",
    "hs_lead_status": "OPEN_DEAL",
    "email": "email@email.com",
    "firstname": "Maria",
    "lastname": "José",
    "company": "Company Name",
    "phone": "+553199999999",
    "mobilephone": "+5531999999999",
    "city": "BELO HORIZONTE",
    "website": "website.com",
    "jobtitle": "SÓCIO",
    "cnpj_novo": "90782530000121",
    "razao_social": "Razão Social",
    "segmento_de_atuacao": "Facilities"
  }
}

* I changed just the properties info, because it's a client info  

0 Upvotes
JBeatty
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Conflict error while trying to update contact email

SOLVE

Hi @ArturRod,

 

Running this example request I was only able to get the same error code if the email field matched that of an existing contact. Basically, you were trying to update a contact to have an identical email to that of another contact, but emails are unique between all contacts in a hubspot account, so hubspot would not let you, as then there would be two contacts with the same email.

 

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

TiphaineCuisset
Community Manager
Community Manager

Conflict error while trying to update contact email

SOLVE

Hi @ArturRod 

 

Thank you for reaching out.

 

I want to tag some of our experts on this - @himanshurauthan @JBeatty do you know what could be happening here?

 

Thank you!

Best

Tiphaine


Saviez vous que la Communauté est disponible en français?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres !

Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !


0 Upvotes
abssd
Member

Conflict error while trying to update contact email

SOLVE

I have the same issue, if the email addresses are similar. It adds the email address to the list of email addresses and changes the name/phone number on the record.

 

I only want this issue, if the email address is an exact match.

 

How can I do that??

0 Upvotes