---
title: "POST /accounts/user/deactivate/"
method: POST
path: "/accounts/user/deactivate/"
tags: ["accounts"]
---

# POST /accounts/user/deactivate/

`POST /accounts/user/deactivate/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/accounts/user/deactivate/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Deactivate user by marking is_active as False

## Request body

- DeactivateUser
  - `user_id` string, uuid, required

## Response `200`

OK

- DeactivateUserResponse
  - `status` boolean, required
  - `result` DeactivateUserResult, required
    - `message` string, required
    - `user_id` string, uuid, required
    - `user_email` string, email, required
    - `user_name` string, nullable, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
