Sending a POST request to/crm/v4/associations/{fromObjectType}/{toObjectType}/labels with “label” and “name” in the POST data creates a label to use for associations. What is “name” in this scenario, and how does it differ from “label”?
Sending a GET request to https://api.hubapi.com/crm/v4/objects/contacts?associations=companies returns associations between contacts and companies. The associations/results array includes “id” and “type”. Id is the association ID and type seems to be either a standard HubSpot association type or the label “name”. Is this correct?
---
"associations": {
"companies": {
"results": \[
{
"id": "6277896643",
"type": "contact\_to\_company"
},
{
"id": "6266951100",
"type": "contact\_to\_company\_unlabeled"
},
{
"id": "6277896643",
"type": "contact\_to\_company\_unlabeled"
}
]
----
Lastly, why does sending a GET request to
/crm/v4/associations/{fromObjectType}/{toObjectType}/labels
not return the created label name?
----
“results”: [
{
"category": "HUBSPOT\_DEFINED",
"typeId": 0,
"label": "string"
}
]
-----
Is the label “name” only used when creating a label and when sending a request to https://api.hubapi.com/crm/v4/objects/{fromObjectType}?associations={objectTypes}
Are clients supposed to give labels a “meaningful name”? Most importantly what is the difference between it and “label”?