For objects, there are options for associations that define limits, such as one-to-one or one-to-many associations between objects. How can I set these through an API?
Hey, @srushti18shah
Have you already tried creating one of each type in-app and then requesting them via the Associations API? So you can see how it’s structured. And then use that to create your new labels via the API?
Talk soon! — Jaycee
Forgot the link — Accounts Dashboard | HubSpot
Hi @Jaycee_Lewis ,
I called this api {{HUBSPOT_BASE_URL}}/crm/v4/associations/contacts/companies/labels
and it gives the response
{
"results": [
{
"category": "HUBSPOT_DEFINED",
"typeId": 1,
"label": "Primary"
},
{
"category": "HUBSPOT_DEFINED",
"typeId": 279,
"label": null
},
{
"category": "USER_DEFINED",
"typeId": 3,
"label": "name"
},
{
"category": "USER_DEFINED",
"typeId": 7,
"label": "test"
}
]
}
But I want to set the label limit through API. like one to one or one to many, How can I set that?
Thanks,
Srushti Shah
