APIs & Integrations

AAdamonis
Member

How to update custom object property values using node.js

Can anyone point me in the right direction on how to update a custom objects property values in node.js?  Currently struggling with this.

0 Upvotes
2 Replies 2
Jaycee_Lewis
Community Manager
Community Manager

How to update custom object property values using node.js

Hi,  👋 Can you provide more details? An example request and response is always helpful to the community.

 

Additional questions:

  • Can you get the Node example to update this property or another custom property you are testing with? Update a property — PATCH /crm/v3/properties/{objectType}/{propertyName}
  • By update values, are you editing the Label? Adding more options? Attempting to edit the internal value?

Thanks for the additional information! 

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
AAdamonis
Member

How to update custom object property values using node.js

Thank you for the response.  I did finally get it figured out today.  I was trying to set a value into the property for a specific instance, not update the property itself.  I think my problem was that I was sending the body as a string instead of a json object.  I used PATCH /crm/v3/objects/{objectTypeId}/{objectId}.

0 Upvotes