---
title: "Comment settings"
description: "The owner's switches: enabled (comments on or off for this item) and public (show comments to readers who aren't signed in)."
canonical_url: https://docs.markdrop.in/api/comments/comment-settings
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Comment settings

`PUT https://api.markdrop.in/api/v1/documents/{slug}/comments/settings`

The owner's switches: `enabled` (comments on or off for this item) and `public` (show comments to readers who aren't signed in).

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 60 per minute per IP address.
- **MCP tool:** `set_comment_settings` ([tools](https://docs.markdrop.in/ai/tools))
- **Guide:** [Comment settings](https://docs.markdrop.in/collaboration/settings-and-privacy)

## Path parameters

- `slug` (string, required): The document's address: the part after `markdrop.in/`.

## Request body

`application/json`, required.

- `enabled` (boolean)
- `public` (boolean)

## Responses

- `200`: OK.
- `401`: No token, or the token is revoked or mistyped.
- `422`: The request didn't validate. `detail` lists each problem, with where it is (`loc`) and why (`msg`).
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl -X PUT https://api.markdrop.in/api/v1/documents/k3x9q2m/comments/settings \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"public":true}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/documents/k3x9q2m/comments/settings", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "public": true
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.put(
    "https://api.markdrop.in/api/v1/documents/k3x9q2m/comments/settings",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={"public": True},
)
r.raise_for_status()
print(r.json())
```
