Deal Property Group Create API

Hi
I am looking to programatically create new deal property groups and associated properties using the following API:
https://developers.hubspot.com/docs/methods/deals/create_deal_property_group
My understanding is that this API will not only create property groups, but also create new properties, given that they are being passed in the request JSON. Unfortunately, this is not what I’m observing. The request succeeds and I see the new property group, but there are the no actual properties.

I was able to confirm that I can get the desired effect by performing 2 independent requests
1. create new property group
2. create new property and specify “groupName” field to perform association
However, it would be cleaner to just do it in the one request. Is this possible or is my understanding of the API incorrect?
Thank you for your help :slightly_smiling_face:

Hi @jmckay , the deal property group API will not create new propeties, just a group. If you’d like existing properties to exist within that group, you can specify those, but they must first exist in your account. You should use this endpoint to create the property first