# Updating a contact

**URL:** <https://integration.keap.com/t/updating-a-contact/18363>\
**Category:** API Q&A\
**Tags:** contact-management\
**Created:** [October 19, 2017, 8:20am UTC](https://integration.keap.com/t/updating-a-contact/18363 "2017-10-19T08:20:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Von\_Ryan\_Javillonar](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/von_ryan_javillonar/32/158_2.png) [@Von\_Ryan\_Javillonar](https://integration.keap.com/u/Von_Ryan_Javillonar)\
**Post date:** [October 19, 2017, 8:20am UTC](https://integration.keap.com/t/updating-a-contact/18363/1 "2017-10-19T08:20:36Z")

</div>

I’m using REST, and I’ve successfully added a contact based on the samples provided in the documentation… However I cannot update. I’m using the following code to add contact:

$this-\>infusionsoft-\>contacts()-\>create($data);

How can I update a contact? as I can’t find contacts()-\>update function

Please help thanks!

---

<div class="post-metadata">

**Author:** ![Nicholas\_Trecina](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/nicholas_trecina/32/5338_2.png) [@Nicholas\_Trecina](https://integration.keap.com/u/Nicholas_Trecina)\
**Post date:** [October 19, 2017, 4:41pm UTC](https://integration.keap.com/t/updating-a-contact/18363/2 "2017-10-19T16:41:39Z")

</div>

Hi @Von_Ryan_Javillonar, you can update a contact by calling the save method on it, like this: `$contact->save()`. The save method will check to see if the `id` is set on the contact and will perform a PATCH if it is there.
