Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
dataJSON object


Code Block
"data": {
    "_fname": "John",
    "_lname": "Doe"
}


No

Profile data that will change after merging

db_idint1YesDatabase ID
skip_triggersbooltrueNoSkip trigger events
By default – false
sourcearray


Code Block
"source": [
	{
		"db_id": 1,
		"email": "test1@mail.ru"
	},
	{
		"db_id": 2,
		"email": "test2@mail.ru"
	}
]


YesContains matching data about the profiles to be merged
destination

JSON object


Code Block
"destination": {
		"db_id": 3,
		"email": "test3@mail.ru"
	}


Yes

Contains the matching data of the profile resulting from the merge

matchingstring

"email"

"email_profile"

"email_sub"

"phone"

"phone_sub"

"profile_id"

"push_sub"

"custom"

"custom_sub"

"email_phone"

"email_phone_sub"

No, if matched by email from the profile or subscriptions

Profile matching mode

By default  - email

For each type of matching, certain fields must be passed in the request body. Learn more about these fields here.

field_name

stringcustom_ID

Yes, if

"matching": "custom"

Name of custom database field if matching : custom. In the data collection form, a field with the same name is required for search.

field_valueint/stringcustom_string

Yes, if

"matching": "custom"

Value of custom database field if matching : custom.
subscriptions


booltrueNo

Copy and merge subscriptions

By default – true

historybooltrueNo

Copy history and activity flags

By default – true

static_segments


booltrueNo

Whether to make changes to static segments or not (source-profiles will leave the segments, and destination-profile will enter)

By default – true

overwritebooltrueNo

Whether to copy the fields of source profiles or not

Info

If the destination profile has empty fields, in any case, these fields will be filled with the profile fields the priority of which is the highest.


deletebooltrueNoWhether to remove source profiles after merging or not

...