---
title: "Preview an attributed staff member merge"
method: POST
path: "/v1/admin/cockpit/teams/{tenant_id}/member-merges/preview"
tags: ["admin"]
---

# Preview an attributed staff member merge

`POST /v1/admin/cockpit/teams/{tenant_id}/member-merges/preview`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/admin/cockpit/teams/{tenant_id}/member-merges/preview`
- Auth: HTTP bearer

Judge a staff-vouched merge and return its carry plan without writing.

## Path parameters

- `tenant_id` string, uuid, required

## Request body

- AdminMemberMergeRequest: Two tenant-bound members and the staff operator's reason.
  - `surviving_membership_id` string, uuid, required: The member who remains active.
  - `retiring_membership_id` string, uuid, required: The duplicate member that becomes inactive.
  - `reason` string, required

## Response `200`

Successful Response

- AdminMemberMergePreview: The current verdict and the full carry plan.
  - `allowed` boolean, required
  - `evidence_code` string, nullable
  - `refusal_code` string, nullable
  - `operator_email` string, nullable
  - `detail` object
  - `emails_gained` string[]
  - `chat_identity_moves` boolean
  - `rows_moved` integer
  - `carried` AdminMemberMergeCarriedItem[]
    - `table` string, required
    - `column` string, required
    - `row_count` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Permission denied (PERMISSION_DENIED) or email not verified (EMAIL_NOT_VERIFIED)
- `404`: Not found
- `409`: Conflict: admin write rejected on a state invariant. Inspect ``errors[0].type`` for the specific case (for example: ``self_action_forbidden``, ``already_disabled``, ``not_disabled``, ``last_internal_admin``, ``value_error``)
- `422`: Validation error

---

[API](https://skmtc.dev/patricia/apis/patricia-api.md) · [All operations](https://skmtc.dev/patricia/apis/patricia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/patricia/apis/patricia-api/revisions/0dfb44495ea1?raw)
