---
title: "Admin Block User"
method: POST
path: "/api/admin/crm/users/{user_id}/block"
---

# Admin Block User

`POST /api/admin/crm/users/{user_id}/block`

## Request

- Base URL: `https://api.mednode.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mednode.in/api/admin/crm/users/{user_id}/block`
- Auth: none declared

Block or unblock a patient account.

Blocking sets a flag and revokes every active session, so access stops
immediately rather than when the current token expires. Nothing is deleted —
medical records, billing history and the audit trail are preserved, and the
action is fully reversible.

## Path parameters

- `user_id` integer, required

## Headers

- `authorization` string, nullable

## Request body

- AdminBlockUserRequest
  - `blocked` boolean, required
  - `reason` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mednode/apis/mednode-ai-api.md) · [All operations](https://skmtc.dev/mednode/apis/mednode-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mednode/apis/mednode-ai-api/revisions/7e0b84effd6e?raw)
