APIs & Integrations

nadav
Member

Updating a contract by company field

Hi,

 

Is it possible to update an existing contract by his company property? Or by another property? In hubspot's documentation I can only find examples of updating contract by his email - screenshot from hubspot documentation attached.Capture.PNG

 

 

0 Upvotes
1 Reply 1
WendyGoh
HubSpot Employee
HubSpot Employee

Updating a contract by company field

Hi @nadav,

 

I hope all is well with you 😄

 

Currently when looking to update contact by property, you can only do so by the email property or vid. 

 

That said, if you'd like to update contact based on a particular company property, what you can do is:

company properties.png

  • Next, use this endpoint: Get contacts in a list to retrieve all the contacts in that particular list.
  • Loop through the return response body to grab the vid/email and use this vid/email property to update contacts accordingly.

Hope this helps!

0 Upvotes