Associations v4 schema endpoints confusion | How to retrieve name?
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? ----