---
title: "Update the state of an account to either enabled or disabled. For deletion use the DELETE route"
method: PUT
path: "/accounts/{accountname}/state"
tags: ["User Management"]
---

# Update the state of an account to either enabled or disabled. For deletion use the DELETE route

`PUT /accounts/{accountname}/state`

## Path parameters

- `accountname` string, required

## Request body

- AccountStatus — A summary of account status
  - `state` 'enabled' | 'disabled' — The status of the account

## Response `200`

Updated state of the account

- AccountStatus — A summary of account status
  - `state` 'enabled' | 'disabled' — The status of the account

## Other responses

- `400` — State requested is invalid based on current state of the account
- `500` — Internal error

---

[API](https://skmtc.net/banzaicloud/apis/anchore-engine-api-server.md) · [All operations](https://skmtc.net/banzaicloud/apis/anchore-engine-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/banzaicloud/anchore-engine-api-server/versions/38e5705e0b21/schema)
