---
title: "Update command enabled state, alias, or permission group"
method: PATCH
path: "/api/v1/commands/{command_id}"
tags: ["Commands"]
---

# Update command enabled state, alias, or permission group

`PATCH /api/v1/commands/{command_id}`

## Path parameters

- `command_id` string, required

## Request body

- CommandPatchRequest
  - `enabled` boolean
  - `alias` string
  - `aliases` string[]
  - `permission_group` string

## Response `200`

Standard AstrBot success response

- SuccessEnvelope
  - `status` 'ok', required
  - `message` string
  - `data` unknown, required

## Changes

- **2026-06-14** `6b73b947caab` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1/changes/api/v1/commands/:command_id/patch.md)

---

[API](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1.md) · [All operations](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/astrbotdevs/astrbot-openapi-v1/revisions/6b73b947caab/schema)
