I’m creating deals via API and they have different type of contact assocations. To seperate them, I can label them from the UI by clicking “More → Edit association labels”. Though I need to automate it. I couldn’t find anything related to label on the request body. Isn’t it possible?
I’m looking for something like that
/crm/v3/objects/deals/create
{
“associations”: [
{
…
**"label": "string"**
},
],
“properties”: {
…
}
}
Update:
OK. I think I found the answer. When you create a label, its actually a user defined association. So instead of using hubspot defined deals to contact association, I need to use my new labeled user defined association.
Hey @UÖnder, thank you for posting in our Community!
It seems like you’re looking to automate the labeling of associations when creating deals via the API. While the functionality to assign labels to associations isn’t directly available in the request body, you can achieve similar categorization through alternative methods. For example, you can utilize custom fields to categorize associations. Create a custom field specifically for this purpose, such as “Association Type,” and include it in your API request payload to denote the type of association.