---
title: "Update command history enabled setting (admin only)"
method: PATCH
path: "/users/command-history-enabled"
tags: ["Users"]
---

# Update command history enabled setting (admin only)

`PATCH /users/command-history-enabled`

Globally enables or disables command history recording for all hosts.

## Request body

- object
  - `enabled` boolean

## Response `200`

Setting updated.

## Other responses

- `403` — Not authorized.
- `500` — Failed to update setting.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
