curl --request POST \
--url 'https://api.hubapi.com/media-bridge/2026-03/{appId}/schemas/{objectType}/associations?hapikey=' \
--header 'Content-Type: application/json' \
--data '
{
"fromObjectTypeId": "<string>",
"toObjectTypeId": "<string>",
"name": "<string>"
}
'{
"fromObjectTypeId": "<string>",
"id": "<string>",
"toObjectTypeId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}Create a new association definition for the specified object type.
curl --request POST \
--url 'https://api.hubapi.com/media-bridge/2026-03/{appId}/schemas/{objectType}/associations?hapikey=' \
--header 'Content-Type: application/json' \
--data '
{
"fromObjectTypeId": "<string>",
"toObjectTypeId": "<string>",
"name": "<string>"
}
'{
"fromObjectTypeId": "<string>",
"id": "<string>",
"toObjectTypeId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}Supported products
successful operation
The definition of an association
The ID of the source object type (e.g., 0-1 for contacts).
The unique ID of the associated object (e.g., a contact ID).
The ID of the destination object type (e.g., 0-3 for deals).
The timestamp when the association was created, in ISO 8601 format.
For labeled association types, the internal name of the association.
The timestamp when the last update was made to an association, in ISO 8601 format.
Was this page helpful?