Hubspot API Error: Defining a new property: property_group does not exist (Solved)

CR Rollyson
Oct 26, 2024

--

If you are following along with the Hubspot Custom Objects Car Example, you may run into an error when you reach the “Defining a new property” section.

The example POST body request has the groupName listed as “car_information “–– "groupName": "car_information"

For me, this returned a 400 Bad Request error message that explains there isn’t a property group of ‘car_information’ — it does not exist.

What to do?

Send a GET properties request to the Custom Cars Object to get the proper groupName. In my case it was “cars_information” pural, not “car_information”.

Retry the Code Example

Updating the example POST body request with the corrected groupName and sending to the endpoint, solved the issue.

Hope this helps √

This post is part of my Hubspot API shorts series as I’m working through Custom Objects.

--

--

CR Rollyson

UX & Web mgr for a S&P 500 Fintech & COO of Side Role, a marketing team partnering w In-house Teams & Agencies, Non-profits, & Start-Ups. https://siderole.com