Setup Conditional Options via API ?

Hi,

Thanks to the recent addition of Conditional Options (Limit available options based on a controlling property), we are now able to set up conditional options through the HubSpot interface. However, the process can easily become tedious for cases such as the Country <> State relationship, where a given country may have dozens of states to set up manually.

Therefore, is there any endpoint available to set this up conditional options programmatically through the API?

From my own research, I saw that when using the HubSpot interface, calls are made to https://app-eu1.hubspot.com/api/conditional-properties/v2/options/batch/replace, but this endpoint seems not available for public use.

Thanks in advance !

Hey, @CCristev :waving_hand: I double-checked the Properties API doc and you are not missing an option. If you have a moment, adding your suggestion to the Ideas Community and getting some upvotes will be very helpful in getting your suggestion in front of the Product team. If you add a link back to your Idea post, I’ll be sure to give it an upvote to help get the ball rolling.

Best,

Jaycee

Hi @Jaycee_Lewis,

Thanks for the confirmation !
I’ve added a new Idea on the community : https://community.hubspot.com/t5/HubSpot-Ideas/Ability-to-set-Up-Conditional-Options-using-the-API/idi-p/993674