APIs & Integrations

ArturRod
Membre

Conflict error while trying to update contact email

Résolue

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 Votes
1 Solution acceptée
JBeatty
Solution
Guide | Partenaire solutions Diamond
Guide | Partenaire solutions Diamond

Conflict error while trying to update contact email

Résolue

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

Voir la solution dans l'envoi d'origine

5 Réponses
JBeatty
Guide | Partenaire solutions Diamond
Guide | Partenaire solutions Diamond

Conflict error while trying to update contact email

Résolue

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
Membre

Conflict error while trying to update contact email

Résolue

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 Votes
JBeatty
Solution
Guide | Partenaire solutions Diamond
Guide | Partenaire solutions Diamond

Conflict error while trying to update contact email

Résolue

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
Gestionnaire de communauté
Gestionnaire de communauté

Conflict error while trying to update contact email

Résolue

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 Votes
abssd
Membre

Conflict error while trying to update contact email

Résolue

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 Votes