---
title: "To disable user by username"
method: PUT
path: "/api/Users/disableuser"
tags: ["Users"]
---

# To disable user by username

`PUT /api/Users/disableuser`

## Request

- Base URL: `https://apidocs.cflowapps.com` (the document declares no server; this is the origin it was published from)
- URL: `https://apidocs.cflowapps.com/api/Users/disableuser`
- Auth: API key in header `X-Api-Key` and API key in header `X-User-Key`
- TypeScript: <https://skmtc.dev/cflowapps/apis/cflow-public-api/docs/api/Users/disableuser/put.ts> (a function with typed inputs; its response is checked against the schema)

Sample request:
            
    PUT 
    {
         "Username":"john"
    }

## Request body

- UserRequest
  - `username` string, required: Username of the user

## Response `200`

Request Successful

- StatusResDto
  - `status` string, nullable

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: User not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/cflowapps/apis/cflow-public-api.md) - [All operations](https://skmtc.dev/cflowapps/apis/cflow-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cflowapps/apis/cflow-public-api/revisions/af0dadd0ad10?raw)
