We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Feb 18, 2022 7:36 AM - edited Feb 18, 2022 7:37 AM
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?
Solved! Go to Solution.
Feb 23, 2022 3:21 PM
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 Still have questions? Let's Talk |
Feb 21, 2022 1:39 PM
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 Still have questions? Let's Talk |
Feb 23, 2022 8:35 AM
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
Feb 23, 2022 3:21 PM
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 Still have questions? Let's Talk |
Feb 21, 2022 4:23 AM
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 ! |
Jul 6, 2022 1:02 PM
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??