---
title: "Toggle User Active"
method: PATCH
path: "/admin/users/{user_id}/toggle-active"
tags: ["admin"]
---

# Toggle User Active

`PATCH /admin/users/{user_id}/toggle-active`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/admin/users/{user_id}/toggle-active`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Activate or deactivate a user account.

## Path parameters

- `user_id` string, uuid, required

## Response `200`

Successful Response

- SuccessResponse
  - `success` boolean
  - `message` string, required
  - `data` unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
