> ## 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 contacts.

The destination contact will remain.



## OpenAPI

````yaml /openapi/rest/openapi-v3-Contact.json post /api/v1/Contact/{sourceContactId}/MergeTo/{destinationContactId}
openapi: 3.0.0
info:
  version: v1-REST
  title: SuperOffice REST API v1
  description: SuperOffice REST API - Contact
  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/Contact/{sourceContactId}/MergeTo/{destinationContactId}:
    post:
      tags:
        - Contact
      summary: Merge
      description: |-
        Merge two contacts.

        The destination contact will remain.
      operationId: v1ContactEntity_Merge
      parameters:
        - name: sourceContactId
          in: path
          description: >-
            Source contact to merge from. This contact will disappear after the
            merge.
          required: true
          schema:
            type: integer
            format: int32
        - name: destinationContactId
          in: path
          description: Destination contact to merge into
          required: true
          schema:
            type: integer
            format: int32
        - name: mergeIdenticalPersons
          in: query
          description: Persons with identical names will be merged
          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/project/merge.md)
- [Merge companies](/en/company/learn/merge-companies.md)
