Merge End-Users
merge_end_usersMerge multiple end-user profiles into a single target, repointing all associated data and tombstoning the sources. Reversible within 30 days.
Instructions
Merge source end-users into a target and return the merge result, including the merge event id (also recoverable later via list_identity_merges): all FK rows (events, insights, tasks, …) are re-pointed onto the target and the sources are tombstoned. A write; reversible for 30 days via unmerge_end_users. Get the candidate ids from get_device_candidates first — never guess which users to fold together. target_end_user_id and source_end_user_ids are required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why the merge (optional, recorded). | |
| target_end_user_id | Yes | UUID of the end-user to keep, from get_device_candidates. | |
| source_end_user_ids | Yes | UUIDs of end-users to fold into the target, from get_device_candidates. |