---
title: "Turn on debug logs for a day"
method: POST
path: "/api/plugin_settings/{id}/debug_logs"
tags: ["Plugin Settings - Logs"]
---

# Turn on debug logs for a day

`POST /api/plugin_settings/{id}/debug_logs`

## Request

- Base URL: `https://trmnl.com`
- URL: `https://trmnl.com/api/plugin_settings/{id}/debug_logs`
- Auth: HTTP bearer

A private plugin then records the request and response of each fetch for 24 hours; read them with getPluginSettingLogs.

## Path parameters

- `id` string, required

## Response `200`

Debug logs enabled

- object
  - `data` object
    - `debug_logs_until` string, date-time

## Other responses

- `401`: Unauthorized
- `404`: Plugin setting belongs to another user
- `422`: Only a private plugin records debug logs

---

[API](https://skmtc.dev/trmnl/apis/trmnl-api.md) · [All operations](https://skmtc.dev/trmnl/apis/trmnl-api/llms.txt) · [OpenAPI document](https://skmtc.dev/trmnl/apis/trmnl-api/revisions/66179e6d663b?raw)
