---
title: "Enable or disable a bot by body ID"
method: PATCH
path: "/api/v1/bots/enabled"
tags: ["Bots"]
---

# Enable or disable a bot by body ID

`PATCH /api/v1/bots/enabled`

**Required scope:** `bot`

## Request body

- object
  - `bot_id` string, required
  - `enabled` boolean, required

## Response `200`

Standard AstrBot success response

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

---

[API](https://skmtc.net/astrbotdevs/apis/astrbot-openapi-v1.md) · [All operations](https://skmtc.net/astrbotdevs/apis/astrbot-openapi-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astrbotdevs/astrbot-openapi-v1/versions/4463c5ffdb9c/schema)
