> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Merge

> Merge two persons.

The destination person will remain. You must specify the date after which activities will be moved along with the person.



## OpenAPI

````yaml /openapi/rest/openapi-v3-Person.json post /api/v1/Person/{sourcePersonId}/MergeTo/{destinationPersonId}
openapi: 3.0.0
info:
  version: v1-REST
  title: SuperOffice REST API v1
  description: SuperOffice REST API - Person
  contact:
    name: SuperOffice DevNet
    url: https://docs.superoffice.com/en/api/index.html
    email: sdk@superoffice.com
servers:
  - url: http://localhost:56350
  - url: https://localhost:56350
security: []
tags: []
externalDocs:
  description: >-
    The SuperOffice DevNet Community has more documentation, examples, and
    discussion forums.
  url: https://community.superoffice.com/en/developer/
paths:
  /api/v1/Person/{sourcePersonId}/MergeTo/{destinationPersonId}:
    post:
      tags:
        - Person
      summary: Merge
      description: >-
        Merge two persons.


        The destination person will remain. You must specify the date after
        which activities will be moved along with the person.
      operationId: v1PersonEntity_Merge
      parameters:
        - name: sourcePersonId
          in: path
          description: >-
            The identifier for the person which will be merged into the
            destination person. The source person is deleted/marked retired
            after the merge.
          required: true
          schema:
            type: integer
            format: int32
        - name: destinationPersonId
          in: path
          description: >-
            The identifier for the person which will remain after the merge. The
            target person is updated.
          required: true
          schema:
            type: integer
            format: int32
        - name: moveAfterDate
          in: query
          description: >-
            Merge activites after this date. Activities before this date are
            left alone.
          required: true
          schema:
            type: string
            format: date-time
        - name: deleteSource
          in: query
          description: >-
            If true, the source person will be deleted after the merge. If
            false, it will have its retired flag set
          required: false
          schema:
            type: boolean
        - name: replaceEmptyFieldsOnDestination
          in: query
          description: >-
            If true, empty fields on destination will be replaced by values from
            source.
          required: false
          schema:
            type: boolean
        - name: SO-AppToken
          in: header
          description: >-
            The application token that identifies the partner app. Used when
            calling Online WebAPI from a server.
          required: false
          schema:
            type: string
      responses:
        '204':
          description: No Content
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components: {}

````

## Related topics

- [Merge](/en/api/reference/restful/rest/contact/merge.md)
- [Merge companies](/en/company/learn/merge-companies.md)
