# Contact Update JavaScript

**URL:** <https://community.hubspot.com/t/contact-update-javascript/137711>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [August 8, 2025, 5:13pm UTC](https://community.hubspot.com/t/contact-update-javascript/137711 "2025-08-08T17:13:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KShiban](https://avatars.discourse-cdn.com/v4/letter/k/e495f1/32.png) [@KShiban](https://community.hubspot.com/u/KShiban)\
**Post date:** [August 8, 2025, 5:13pm UTC](https://community.hubspot.com/t/contact-update-javascript/137711/1 "2025-08-08T17:13:23Z")

</div>

Does anyone have a good example for updating an existing contact through JavaScript?

I can use the Contact Id or the Email as the Id value.

---

<div class="post-metadata">

**Author:** ![Victor\_Becerra](https://avatars.discourse-cdn.com/v4/letter/v/87869e/32.png) [@Victor\_Becerra](https://community.hubspot.com/u/Victor_Becerra)\
**Post date:** [August 8, 2025, 10:07pm UTC](https://community.hubspot.com/t/contact-update-javascript/137711/2 "2025-08-08T22:07:05Z")

</div>

Hi @KShiban  
Thank you for reaching out to the Community!  
I’d like to invite some community members who are subject matter experts to join this conversation.  
[@sylvain\_tirreau](https://community.hubspot.com/t5/user/viewprofilepage/user-id/601366) @Anton @kosalaindrasiri - Would you be able to share any insights on this? Your expertise would be greatly appreciated.  
Best,  
Victor

---

<div class="post-metadata">

**Author:** ![sylvain\_tirreau](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sylvain_tirreau/32/67408_2.png) [@sylvain\_tirreau](https://community.hubspot.com/u/sylvain_tirreau)\
**Post date:** [August 11, 2025, 7:26am UTC](https://community.hubspot.com/t/contact-update-javascript/137711/3 "2025-08-11T07:26:51Z")

</div>

You have a good example on the [documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/contacts#patch-%2Fcrm%2Fv3%2Fobjects%2Fcontacts%2F%7Bcontactid%7D) to update a contact (click on “Node” on the right to have the example code in javascript, because you can only do it in backend and not in frontend). You have to use the contactId.
