# Create or update contacts

**URL:** <https://integration.keap.com/t/create-or-update-contacts/8075>\
**Category:** API Q&A\
**Created:** [August 1, 2017, 6:18am UTC](https://integration.keap.com/t/create-or-update-contacts/8075 "2017-08-01T06:18:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohan\_Jalil](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@Rohan\_Jalil](https://integration.keap.com/u/Rohan_Jalil)\
**Post date:** [August 1, 2017, 6:18am UTC](https://integration.keap.com/t/create-or-update-contacts/8075/1 "2017-08-01T06:18:30Z")

</div>

Infusionsoft has api endpiont to create or update contacts but PHP sdk don’t provide any interface to use that endpoint. Is there a way to do so? Am I missing something?

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [August 1, 2017, 6:32am UTC](https://integration.keap.com/t/create-or-update-contacts/8075/2 "2017-08-01T06:32:19Z")

</div>

Apples and oranges. The REST implementation uses endpoints under REST design. The api that is accessible via the php support files has an XML-RPC structure at it’s core and is handled by the code. You instantiate the object you want, authenticate and then start using it’s methods.

---

<div class="post-metadata">

**Author:** ![Rohan\_Jalil](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@Rohan\_Jalil](https://integration.keap.com/u/Rohan_Jalil)\
**Post date:** [August 1, 2017, 6:55am UTC](https://integration.keap.com/t/create-or-update-contacts/8075/3 "2017-08-01T06:55:50Z")

</div>

I’m sorry if I couldn’t clear myself. I’m using ([infusionsoft-php](https://github.com/infusionsoft/infusionsoft-php)) which supports both REST and XML-RPC. Api has createOrUpdate REST endpoint but php library don’t have any function to use that api.

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [August 1, 2017, 8:14am UTC](https://integration.keap.com/t/create-or-update-contacts/8075/4 "2017-08-01T08:14:16Z")

</div>

look at addWithDupCheck

---

<div class="post-metadata">

**Author:** ![Rohan\_Jalil](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@Rohan\_Jalil](https://integration.keap.com/u/Rohan_Jalil)\
**Post date:** [August 1, 2017, 8:30am UTC](https://integration.keap.com/t/create-or-update-contacts/8075/5 "2017-08-01T08:30:54Z")

</div>

This is supported in xml rpc but not in the rest api

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [August 1, 2017, 2:23pm UTC](https://integration.keap.com/t/create-or-update-contacts/8075/6 "2017-08-01T14:23:08Z")

</div>

You say that you’re using createOrUpdate with REST. The api equal would be addWithDupCheck… they’re just names. They preform the same function. If it’s critical to you to have them be the same name then create a psuedo function for one or the other.

---

<div class="post-metadata">

**Author:** ![Rohan\_Jalil](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@Rohan\_Jalil](https://integration.keap.com/u/Rohan_Jalil)\
**Post date:** [August 1, 2017, 3:15pm UTC](https://integration.keap.com/t/create-or-update-contacts/8075/7 "2017-08-01T15:15:39Z")

</div>

Thanks @John_Borelli, is it correct that xml rpc accepts differnt parameters than rest api?

---

<div class="post-metadata">

**Author:** ![Rohan\_Jalil](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@Rohan\_Jalil](https://integration.keap.com/u/Rohan_Jalil)\
**Post date:** [August 1, 2017, 3:18pm UTC](https://integration.keap.com/t/create-or-update-contacts/8075/8 "2017-08-01T15:18:15Z")

</div>

And is there any particular reason that createOrUpdate is not supported in rest structure? Because I can see that we just need to change call type post to put in RestModel to support this endpoint?

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [August 1, 2017, 9:09pm UTC](https://integration.keap.com/t/create-or-update-contacts/8075/9 "2017-08-01T21:09:46Z")

</div>

REST is still in development. You will not find all features carried over yet. Rely on documentation to tell you what is currently available.
