POST
/
crm-object-schemas
/
v3
/
schemas
/
{objectType}
/
associations
Create an association
curl --request POST \
  --url https://api.hubapi.com/crm-object-schemas/v3/schemas/{objectType}/associations \
  --header 'Content-Type: application/json' \
  --data '{
  "fromObjectTypeId": "2-123456",
  "toObjectTypeId": "contact",
  "name": "my_object_to_contact"
}'
{
  "id": "105",
  "fromObjectTypeId": "2-123456",
  "toObjectTypeId": "0-1",
  "name": "my_object_to_contact"
}
Supported products
Requires one of the following products or higher.
Marketing HubMarketing HubEnterprise
Sales HubSales HubEnterprise
Service HubService HubEnterprise
Content HubContent HubEnterprise

Path Parameters

objectType
string
required

Fully qualified name or object type ID of your schema.

Body

application/json

Attributes that define the association.

Defines an association between two object types.

Response

201
application/json

successful operation

Defines an association between two object types.