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

created_atDateTime (ISO 8601)
Required

modified_atDateTime (ISO 8601)
Required
This is the datetime that this object was last updated by Merge

source_objectObject
Optional

target_objectObject
Optional

association_typeUUID
Optional


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

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
Whether to include data that was marked as deleted by third party webhooks.

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

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

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