Contact property not updating even with success response


#1

We’ve created a contact property which we’re trying to update via the Contacts API (specifically, the update a contact by email API). We’re getting a 204 response from the API but the property never updates: for example, I ran several tests yesterday afternoon but the property hasn’t changed.

FYI, the property is named unreadMessageCount.

Any idea what we might be doing wrong? Let me know if you need additional information.

Thanks,
Ian


#2

@IanMarriott Which endpoint are you using in the Contacts API?


#3

@pmanca

The endpoint from the documentation – e.g., the one in the example https://api.hubapi.com/contacts/v1/contact/email/testingapis@hubspot.com/profile?hapikey=demo (only with our hapikey and email addresses).

Is this the correct endpoint?


#4

@IanMarriott Yes that’s correct, Can you email me your portal ID? pmanca@hubspot.com. I’d like to take a look at your portal and see if I can recreate the issue. Also in here can you post the call you are making? perhaps there is an issue with your JSON block.


#5

@pmanca

Actually… It turns out our test data was bad: the email address of the username I’ve been using was incorrectly set to that of another username. Once I noticed this, I was able to see that the API calls are working as expected.

Sorry for any inconvenience and thanks for the help,
Ian


#6

Ian,

No worries, I’m glad you got it figured out. Thanks for letting me know.