---
title: "Deactivate staff, transfer ownership, and revoke access"
method: POST
path: "/accountant/admin/team/{accountantId}/deactivation"
---

# Deactivate staff, transfer ownership, and revoke access

`POST /accountant/admin/team/{accountantId}/deactivation`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/admin/team/{accountantId}/deactivation`
- Auth: HTTP bearer

## Path parameters

- `accountantId` string, uuid, required

## Request body

- object
  - `moveToAccountantId` string, uuid, nullable: Required when the departing staff member owns clients

## Response `200`

Staff deactivated and transfers committed

- object
  - `success` boolean
  - `data` object
    - `accountantId` string, uuid
    - `movedClientCount` integer
    - `clearedReviewCount` integer

## Other responses

- `403`: Caller or target ineligible, or affected clients out of scope
- `422`: Invalid or missing replacement

## Changes

- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/admin/team/:accountantId/deactivation/post.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
