---
title: "Move or share an item to teams"
description: "Sets the item's teams and projects (both empty: company-wide)."
canonical_url: https://docs.markdrop.in/api/teams/move-or-share-an-item-to-teams
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Move or share an item to teams

`PUT https://api.markdrop.in/api/v1/workspaces/{workspace_id}/items/{doc_id}/teams`

Sets the item's teams and projects (both empty: company-wide). Needs edit on the item; adding needs membership of the team or project, removing too (workspace admins: any). Sub-pages follow their page; a meeting's page brings its meeting and transcript.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 120 per minute per IP address.
- **MCP tool:** `move_to_team` ([tools](https://docs.markdrop.in/ai/tools))

## Path parameters

- `workspace_id` (string, required): The workspace's id, from the address of its settings page (`markdrop.in/settings/workspaces/<workspace-id>`) or from [List workspaces](https://docs.markdrop.in/api/workspaces/list-workspaces).
- `doc_id` (string, required)

## Request body

`application/json`, required.

- `team_ids` (array of string): Up to 20 items.
- `project_ids` (array of string): Up to 20 items.

## 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/workspaces/WORKSPACE_ID/items/DOC_ID/teams \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/items/DOC_ID/teams", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({}),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.put(
    "https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/items/DOC_ID/teams",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={},
)
r.raise_for_status()
print(r.json())
```
