APIs & Integrations

odavid0
Membre

Update property using api doesnt work (status 204)

Hey

trying to update prop firstname for contact with vid using : 

https://legacydocs.hubspot.com/docs/methods/contacts/update_contact

Got status 204.

however, I don't see that the prop changed.

In addition, i see it added to props history but it does not actually change on the contact.

thanks

 

PAYLOAD 

{ properties: [{ property: 'lastname', value: 'USERNAME' }] }
0 Votes
4 Réponses
pbacelar
Participant

Update property using api doesnt work (status 204)

try :

{ properties: [{ "property": "lastname", "value": "USERNAME" }] }

0 Votes
odavid0
Membre

Update property using api doesnt work (status 204)

anyone?

0 Votes
pbacelar
Participant

Update property using api doesnt work (status 204)

I not use the v1 version of the API but v3 :

https://developers.hubspot.com/docs/api/crm/contacts

 

So, I have not concret experience with v1 API, BUT, the documention of v1 API indicate a usage of double-quote, not simple quote ; and around the key AND around the value:

 

PAYLOAD :
{ properties: [{ "property": "lastname", "value": "USERNAME" }] }

0 Votes
odavid0
Membre

Update property using api doesnt work (status 204)

Hey

can you please share example that works for you ? 🙂 

0 Votes