---
title: "Set plugin log level"
method: PUT
path: "/api/v1/plugins/{plugin_id}/log-level"
tags: ["Plugins"]
---

# Set plugin log level

`PUT /api/v1/plugins/{plugin_id}/log-level`

Set the log level of a plugin. Pass null to follow the global log level.

**Required scope:** `plugin`

## Path parameters

- `plugin_id` string, required

## Request body

- object
  - `level` 'DEBUG' | 'INFO' | 'WARNING' | 'ERROR' | 'CRITICAL' | 'null', nullable — Log level name, or null to follow the global level.

## Response `200`

Standard AstrBot success response

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

## Changes

- **2026-08-01** `a5e99bb08e5d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1/changes/api/v1/plugins/:plugin_id/log-level/put.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/9f8da1b16ca0/schema)
