SolariumSolariumDocs
Browse The Docs

Docs/API Reference/Contacts

POST

Merge Two Contacts

Moves everything on merge_id onto keep_id, adds its emails, fills in what keep_id is missing, then deletes merge_id. Both must be the same type. The preview lists what would move.

Parameters

organizationIdUUID!required

Organization ID

nameString!required

"merge_contacts"

params.keep_idString!required

The contact to keep

params.merge_idString!required

The duplicate, deleted once merged

applyBoolean

true to merge

Request
mutation {
  previewOp(
    organizationId: "a1b2c3d4-..."
    name: "merge_contacts"
    params: { keep_id: "b2c3d4e5-...", merge_id: "c3d4e5f6-..." }
  ) { success result }
}
Response
{
  "data": {
    "previewOp": {
      "success": true,
      "result": {
        "summary": "Merged North Group Ltd Into North Group: Moved 2 invoices, 3 entries.",
        "data": { "deleted_id": "c3d4e5f6-...", "moved": { "invoices": 2, "entries": 3 }, "filled": ["phone"] }
      }
    }
  }
}