---
title: "Change several items' analytics settings"
description: "The same settings for each of slugs (or use_defaults: true), with the same delete."
canonical_url: https://docs.markdrop.in/api/analytics/change-several-items-analytics-settings
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Change several items' analytics settings

`POST https://api.markdrop.in/api/v1/me/analytics-settings/items`

The same `settings` for each of `slugs` (or `use_defaults: true`), with the same `delete`. Items you can't change are returned in `skipped`.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 20 per minute per IP address.
- **MCP tool:** `set_analytics_settings` ([tools](https://docs.markdrop.in/ai/tools))
- **Guide:** [Choose what's tracked](https://docs.markdrop.in/analytics/viewers#choose-whats-tracked)

## Request body

`application/json`, required.

- `settings` (object)
- `delete` (array of string): Up to 9 items.
- `slugs` (array of string, required): 1–200 items.
- `use_defaults` (boolean): Default `false`.

## 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 POST https://api.markdrop.in/api/v1/me/analytics-settings/items \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"slugs":["q3-report","demo-video"],"settings":{"identity":false}}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/me/analytics-settings/items", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "slugs": [
      "q3-report",
      "demo-video"
    ],
    "settings": {
      "identity": false
    }
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.post(
    "https://api.markdrop.in/api/v1/me/analytics-settings/items",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={
        "slugs": ["q3-report", "demo-video"],
        "settings": {"identity": False},
    },
)
r.raise_for_status()
print(r.json())
```
