APIs & Integrations

seanrichter
Member

Hubspot Contact Update not working

SOLVE

Properties are not updated when I send valid JSON using the API npm package. I know the JSON is valid because I get an error if I send an invalid property. When I DO send all valid properties the body shows as empty in the call details. I still get a 200 response.

0 Upvotes
1 Accepted solution
seanrichter
Solution
Member

Hubspot Contact Update not working

SOLVE

Thanks for the feedback. I discovered my updates were actully happening. I was just to new to the product to find the right report to view them. 

View solution in original post

0 Upvotes
2 Replies 2
RubenBurdin
Top Contributor

Hubspot Contact Update not working

SOLVE

Hey @seanrichter 

If you’re getting a 200 OK but nothing updates and the request body shows up empty in HubSpot, here’s what to check.

1. The payload is undefined at runtime. Even if your JSON looks right in code, it might be empty when the API call runs. Add console.log(JSON.stringify(payload)) just before your update call to be sure.

2. The structure is wrong. You must wrap everything under a properties object.
Example: await hubspotClient.crm.contacts.basicApi.update(contactId, { properties: { firstname: "Alice", lifecycle_stage: "customer" } }).

If you send { firstname: "Alice" } directly, it will silently do nothing.

3. You’re using incorrect property names or types. Use internal names like lifecyclestage, not labels like "Lifecycle Stage". Also, validate data types—strings for strings, ISO format for dates, etc.

4. Contact ID or auth is invalid. Make sure you’re using the HubSpot internal contact ID, not an email, and that your private app or token has crm.objects.contacts.write scope.

Hope it helps.! 

RubenB_0-1744927085526.png

 

Ruben Burdin Real-Time Data Sync Between any CRM or Database | Founder @Stacksync (YC W24) 

 

Did my answer help? Please mark it as a solution to help others find it too.

Ruben Burdin Ruben Burdin
HubSpot Advisor
Founder @ Stacksync
Real-Time Data Sync between any CRM and Database
Stacksync Banner
0 Upvotes
seanrichter
Solution
Member

Hubspot Contact Update not working

SOLVE

Thanks for the feedback. I discovered my updates were actully happening. I was just to new to the product to find the right report to view them. 

0 Upvotes