Update property using api doesnt work (status 204)

odavid0
Member

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 Upvotes
4 Replies 4
pbacelar
Participant

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 Upvotes
odavid0
Member

Hey

can you please share example that works for you ? 🙂 

0 Upvotes
odavid0
Member

anyone?

0 Upvotes
pbacelar
Participant

try :

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

0 Upvotes