Skip to main content

Merge two contacts

POST 

/api/addressbooks/:addressBookId/contacts/merge

Merges the contact removeUid into the contact keepUid, deletes removeUid, and returns the kept contact with a new etag. The update and the delete happen in one transaction. Without mergedContact, the kept contact's non-empty fields win and the other contact fills the empty ones, except notes: two different notes are joined with a blank line. Emails (compared ignoring case), phones (compared by digits), addresses (compared ignoring case, spacing and type; the kept contact's type wins) and labels are combined without duplicates. With mergedContact, each field given there sets the result and the kept contact's value is used for the rest. Requires editor or admin; viewers get 403. Returns 400 if the two UIDs are the same, and 404 if either contact is not in this book.

Request​

Responses​

Kept contact after the merge.