Cannot update contact property value the second time
Hi,
I am new to Hubspot API and learning.
I am playing with “Update an existing contact by email” API. I was able to update contact property values using it, however, it works only the first time on each contact. Any subsequent API calls to the same contact does nothing to the data, although the http response code returned is 204.
(I am not using OAuth, i am using Hapikey directly). Any help is appreciated.
Is there a intended delay or cache (due to previous property change API call), and how long does it take for the changes to be available for other API calls?
Cannot update contact property value the second time
Hi congtran,
thanks for the reply. I did change the content. This is what i sent for update, but it just won’t take them, The funny part is, if i update a contact’s data the first time it will take it, just not afterwards.
{
“properties”: [
{
“property”: “echo”,
“value”: “0”
},
{
“property”: “m7”,
“value”: “380”
}
]
}
Cannot update contact property value the second time
@cobantech looking at that records now, I’m seeing 3 versions for the two properties you were updating, and they show the values you were trying to set:
This is the json string we send, cf1 and cf2 are custom fields we uploaded with to Hubspot, as part of our contact data.
{
“properties”: [
{
“property”: “cf1”,
“value”: “32”
},
{
“property”: “cf2”,
“value”: “1”
}
]
}
If i update these value the first time, it works fine (i can read them back and check), but if i update them again with different values, the new value are not taken.
What property are you trying to update? Are you using different values for the subsequent updates? We wouldn’t show an update if the values didn’t actually change.