Skip to main content

API: Merge people by ID

Stefan Schindler avatar
Written by Stefan Schindler
Updated over a year ago

With an authenticated user (see https://how.cambuildr.com/en/articles/5161332-api-authentication) it is possible to merge 2 people:

POST <cambuildr-url>/api/v1/people/merge 
{
old_id: <id of person that will be removed>,
new_id: <id of person that will be kept>
}

Attention: After a successful merge, the person referring to *old_id* will be irrecoverably lost.

The merge happens based on the following rules

  • die core fields of the old person are only copied if they are not set for the new person

  • the same goes with the address

  • every action of the old person will be created for the new person with the current timestamp (excluding the was-created action, which only exists once per person)

  • Content than can exist more than once per person (UGC, ...) is simply transferred to the new person

  • Content that can only exist once per person (Commitment, ..) is only transferred, if it didn't exist for the new person before

Did this answer your question?