AssociationDelete event fires when an association type definition is permanently removed from a sub-account. Deleting an association type also removes the ability to create new relations of that type. Supports contact-to-contact, contact-to-custom object, and custom object-to-custom object relationship types. Use this event to clean up dependent configurations in external systems or alert integrations that a relationship type they relied on no longer exists.
Payload
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier of the deleted association definition |
key | string | Unique key that identified this association type (e.g., "custom_objects.buyer_to_property") |
firstObjectKey | string | Object type key for the first side of the deleted association |
secondObjectKey | string | Object type key for the second side of the deleted association |
associationType | string | Whether the association was "USER_DEFINED" or system-defined |
cardinality | string | Relationship cardinality that was configured, e.g. "MANY_TO_MANY" |
locationId | string | Sub-account ID where the association type existed |
Example payload
Related
- Association Create — fires when a new association type is defined
- Associations API — manage association definitions and relations
.png?fit=max&auto=format&n=EQK5eX9kTD8NzWwA&q=85&s=878008bf159fcc4964d0c0d508b6e400)