# For multiple duplicate contacts which one is updated on a upsert using the Rest API?

**URL:** <https://integration.keap.com/t/for-multiple-duplicate-contacts-which-one-is-updated-on-a-upsert-using-the-rest-api/43640>\
**Category:** API Q&A\
**Tags:** api, dup-check\
**Created:** [June 15, 2018, 12:04am UTC](https://integration.keap.com/t/for-multiple-duplicate-contacts-which-one-is-updated-on-a-upsert-using-the-rest-api/43640 "2018-06-15T00:04:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Billy\_Rowe](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/billy_rowe/32/6913_2.png) [@Billy\_Rowe](https://integration.keap.com/u/Billy_Rowe)\
**Post date:** [June 15, 2018, 12:04am UTC](https://integration.keap.com/t/for-multiple-duplicate-contacts-which-one-is-updated-on-a-upsert-using-the-rest-api/43640/1 "2018-06-15T00:04:35Z")

</div>

When using the REST API function([Create or Update a Contact](https://developer.infusionsoft.com/docs/rest/#!/Contact/createOrUpdateContactUsingPUT)) and there are multiple duplicates, Which contact is updated❓ Is it _always_ the contact with lowest Infusionsoft Id❓

_TIA_

---

<div class="post-metadata">

**Author:** ![TomScott](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/tomscott/32/67_2.png) [@TomScott](https://integration.keap.com/u/TomScott)\
**Post date:** [June 15, 2018, 12:39am UTC](https://integration.keap.com/t/for-multiple-duplicate-contacts-which-one-is-updated-on-a-upsert-using-the-rest-api/43640/2 "2018-06-15T00:39:14Z")

</div>

It will update the original, and return the original’s object (along with it’s Id) in the response.
