Custom Property via API

So recently i was integrating husbpot with our app. is there any way that i can set custom property via API so every time i receive webhook can have that unique id.

Hi @riteshyadav

You can update Custom Objects using the Patch Method in the Objects API.

Fo the object you will need the Object Name (e.g.“2-7239252”) rather than the Object label (e.g. “My Custom Object”).

Have fun

Mike

Here to learn more about HubSpot and share my HubSpot Knowledge. I’m the founder of Webalite a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world’s first automated HubSpot Portal Audit that helps you work smarter with HubSpot.

thanks @Mike_Eastwood :saluting_face:

Hello, Mike. Thank you for your response.

I need the custom property to be included in the webhook I receive from the client side, regardless of the event they have subscribed to.

@Mike_Eastwood pls help

Hi @riteshyadav

When setting up the Webhook, in the HubSpot App, you will see a list of properties that you include in the json.

You will only see default HubSpot Properties in the select list.

BUT, you can type the Property Name (not the Property Label) for your Custom Property and it will appear in the json.

In this exaple “My Cystom Property” is ‘my_custom_property’

Did that work?

Mike