APIs & Integrations

DSugiri
Member

API for Get and Update contact in single request

Hello All, 

 

I need to know is it possible to API query contact and update contact on single request? 

 

please advise. 

 

Thank you

 

 

0 Upvotes
3 Replies 3
webdew
Guide | Diamond Partner
Guide | Diamond Partner

API for Get and Update contact in single request

Hi @DSugiri ,

I am afraid you cannot do that in single request as creating a contact is one scenario and updating a contact is another scenario that's why Hubspot have made two different endpoint.However if you want do both functionalities then you can create a single function in which you can create a contact and then simulatneously update the same contact .I hope this will help.

Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards. 

0 Upvotes
DSugiri
Member

API for Get and Update contact in single request

I use API to get PhoneNumber and dial use pbx and mark as contacted after I sucessfully got. if there is more than one agent use this query the API I'm affraid there will possible duplicate contact received by different agent because updating contact need some time to process.

Please advise
0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

API for Get and Update contact in single request

@DSugiri 

No.  You would need to do two requests.  May I ask what your use case? 

0 Upvotes