Association Types
The Association Type object represents the relationship between two objects.
Properties

idUUID

remote_idString
The third-party API ID of the matching object.

created_atDateTime (ISO 8601)
The datetime that this object was created by Merge.

modified_atDateTime (ISO 8601)
The datetime that this object was modified by Merge.

source_object_classObject
The class of the source object (Custom Object or Common Model) for the association type.

target_object_classesAssociationSubType[]

remote_key_nameString

display_nameString

cardinalityEnum
Possible values include: ONE_TO_ONE, MANY_TO_ONE, MANY_TO_MANY, ONE_TO_MANY. In cases where there is no clear mapping, the original value passed through will be returned. To receive all enum values in the original format, use the show_enum_origins query parameter. Learn more.

is_requiredBoolean


GET
/custom-object-classes/{custom_object_class_id}/association-types
Beta

https://api.merge.dev/api/crm/v1/custom-object-classes/{custom_object_class_id}/association-types

US
EU
APAC

Returns a list of AssociationType objects.


Query & path parameters

created_afterDateTime (ISO 8601)
Optional
If provided, will only return objects created after this datetime.

created_beforeDateTime (ISO 8601)
Optional
If provided, will only return objects created before this datetime.

cursorString
Optional
The pagination cursor value.

custom_object_class_idUUID
Required

expandString
Optional
Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

include_deleted_dataBoolean
Optional
Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

include_remote_dataBoolean
Optional
Whether to include the original data Merge fetched from the third-party to produce these models.

include_shell_dataBoolean
Optional
Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

modified_afterDateTime (ISO 8601)
Optional
If provided, only objects synced by Merge after this date time will be returned.

modified_beforeDateTime (ISO 8601)
Optional
If provided, only objects synced by Merge before this date time will be returned.

page_sizeInteger
Optional
Number of results to return per page. The maximum limit is 100.

remote_idString
Optional
The API provider's ID for the given object.

Field support by integration
Use the /linked-accounts endpoint to pull platform support information
HubSpot
HubSpot
Salesforce
Salesforce
Zendesk Sell
Zendesk Sell
Not seeing an integration that you're looking for?
POST
/custom-object-classes/{custom_object_class_id}/association-types
Beta

https://api.merge.dev/api/crm/v1/custom-object-classes/{custom_object_class_id}/association-types

US
EU
APAC

Creates an AssociationType object with the given values.


Query & path parameters

custom_object_class_idUUID
Required

is_debug_modeBoolean
Optional
Whether to include debug fields (such as log file links) in the response.

run_asyncBoolean
Optional
Whether or not third-party updates should be run asynchronously.
Body parameters

modelObject
Required
Find available fields below under “Model Parameters”.
Model parameters
View app-specific writable fields under “Field support by platform” in this section.

source_object_classObject

target_object_classesArray

remote_key_nameString

display_nameString

cardinalityString
  • ONE_TO_ONE
    • ONE_TO_ONE

is_requiredBoolean

Field support by integration
Use the /linked-accounts endpoint to pull platform support information
HubSpot
HubSpot
Zendesk Sell
Zendesk Sell
Not seeing an integration that you're looking for?
To include the correct model fields when making POST requests, use the GET /custom-object-classes/{custom_object_class_id}/association-types/meta/post endpoint. Learn more in our /meta guide.
GET
/custom-object-classes/{custom_object_class_id}/association-types/{id}
Beta

https://api.merge.dev/api/crm/v1/custom-object-classes/{custom_object_class_id}/association-types/{id}

US
EU
APAC

Returns an AssociationType object with the given id.


Query & path parameters

custom_object_class_idUUID
Required

expandString
Optional
Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

idUUID
Required

include_remote_dataBoolean
Optional
Whether to include the original data Merge fetched from the third-party to produce these models.

include_shell_dataBoolean
Optional
Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

Field support by integration
Use the /linked-accounts endpoint to pull platform support information
HubSpot
HubSpot
Salesforce
Salesforce
Zendesk Sell
Zendesk Sell
Not seeing an integration that you're looking for?
GET
/custom-object-classes/{custom_object_class_id}/association-types/meta/post
Beta

https://api.merge.dev/api/crm/v1/custom-object-classes/{custom_object_class_id}/association-types/meta/post

US
EU
APAC

Returns metadata for CRMAssociationType POSTs.


Query & path parameters

custom_object_class_idUUID
Required
Field support by integration
Use the /linked-accounts endpoint to pull platform support information
HubSpot
HubSpot
Zendesk Sell
Zendesk Sell
Not seeing an integration that you're looking for?