Associations
The Association record refers to an instance of an Association Type.
Properties

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

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

source_objectUUID
Required

target_objectUUID
Required

association_typeUUID
Optional
The association type the association belongs to.


GET
/custom-object-classes/{custom_object_class_id}/custom-objects/{object_id}/associations

https://api.merge.dev/api/crm/v1/custom-object-classes/{custom_object_class_id}/custom-objects/{object_id}/associations

US
EU
APAC

Returns a list of Association objects.


Query & Path Parameters

association_type_idString
Optional
If provided, will only return opportunities with this association_type.

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.

object_idUUID
Required

page_sizeInteger
Optional
Number of results to return per page.

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

PUT
/custom-object-classes/{source_class_id}/custom-objects/{source_object_id}/associations/{target_class_id}/{target_object_id}/{association_type_id}
Beta

https://api.merge.dev/api/crm/v1/custom-object-classes/{source_class_id}/custom-objects/{source_object_id}/associations/{target_class_id}/{target_object_id}/{association_type_id}

US
EU
APAC

Creates an Association between source_object_id and target_object_id of type association_type_id.


Query & Path Parameters

association_type_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.

source_class_idUUID
Required

source_object_idUUID
Required

target_class_idString
Required

target_object_idUUID
Required