Merging Contacts
Endpoint
PATCH /contacts/merge
Description
Merges a list of contacts into a single contact. All contacts must be connected to the current account. All contact info (i.e. id, wallet(s), tags, discord, email, phone number, etc...) will be merged.
Conflicting information (ex: id, conflicting email addresses, etc...) will be solved by overwriting the contact of lower priority with the contact info of higher priority. Priority is assigned by the order in which the contacts are provided in the contactIds
parameter, with contacts of higher priority coming first.
Parameters
Parameter | Type | Description |
---|---|---|
contactIds |
| List of at least two ids of contacts to be merged |
Note: The priority of a contact is determined by the order of the contact ids, with higher priority contacts coming first.
Returns
Status Code | Description |
---|---|
200 | Contacts successfully merged |
400 |
|
404 | One of the provided contact ids is invalid and/or doesn't belong to the current account |
Examples
Given the following contacts currently exist:
Example 1:
Results in the contact:
Example 2:
Results in the contact:
Example 3:
Results in the contact:
Example 4:
Results in the contact:
Last updated