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"
}
Unterstützte Produkte
Erfordert eines der folgenden Produkte oder höher.
Marketing HubMarketing HubEnterprise
Sales HubSales HubEnterprise
Service HubService HubEnterprise
Content HubContent HubEnterprise

Path Parameters

objectType
string
required

Vollständig qualifizierter Name oder Objekttyp-ID Ihres Schemas.

Body

application/json

Attributes that define the association.

Defines an association between two object types.

Response

successful operation

Defines an association between two object types.