---
title: "Deactivate selected members"
method: POST
path: "/v1/members/deactivations"
tags: ["members"]
---

# Deactivate selected members

`POST /v1/members/deactivations`

## 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/members/deactivations`
- Auth: HTTP bearer

Soft-deactivate each eligible selected member.

## Headers

- `X-Tenant-Id` string, nullable

## Request body

- MemberDeactivationRequest: The exact memberships selected for bulk removal.
  - `membership_ids` string[], required

## Response `200`

Successful Response

- MemberDeactivationResponse: Ordered bulk-removal outcomes and their counts. Carries the same two credential counts as :class:`MemberRemovalResponse`, and for the same reason: a departing member's personal connections go with them, and a token they pasted can only be rotated at the server that issued it. Removing several members at once is where the most credentials leave at once, so telling the admin here matters more than on the single-member route, not less. Batch TOTALS rather than per-member figures. What the admin has to act on is "some of what just left cannot be revoked from here", which is a property of the batch; attributing a count to each membership would put a number next to people who connected nothing, and the per-member breakdown belongs to the connection list rather than to a removal receipt.
  - `requested` integer, required
  - `removed` integer, required
  - `refused` integer, required
  - `results` MemberRemovalResultItem[], required
    - `membership_id` string, uuid, required
    - `outcome` 'removed' | 'already_removed' | 'refused_owner' | 'refused_self' | 'refused_security_hold' | 'refused_status_held' | 'not_found' | 'failed', required: The result of one requested member removal.
  - `connections_disconnected` integer
  - `revocations_queued` integer

## Other responses

- `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)
