API for Get and Update contact in single request

DSugiri
Member

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
dennisedson
Community Manager

@DSugiri 

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

Thanks,

Dennis




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
0 Upvotes
DSugiri
Member
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
webdew
Top Contributor | Diamond Partner

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