---
title: "Preview moving a folder to a team"
description: "What moving the folder, with everything in it, to team would do: pages, documents and files; how many items visible to the whole workspace become visible to…"
canonical_url: https://docs.markdrop.in/api/teams/preview-moving-a-folder-to-a-team
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Preview moving a folder to a team

`GET https://api.markdrop.in/api/v1/workspaces/{workspace_id}/folders/{folder_id}/move-to-team`

What moving the folder, with everything in it, to `team` would do: pages, documents and files; how many items visible to the whole workspace become visible to that team only; private items (they stay private); items shared with people (they keep it); public links (they keep working, listed); and `can_move`. Changes nothing.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 120 per minute per IP address.
- **MCP tool:** `move_folder_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).
- `folder_id` (string, required): The folder's id, from [List folders](https://docs.markdrop.in/api/folders/list-folders).

## Query parameters

- `team` (string, required)
- `parent_id` (string)

## 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 'https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/folders/FOLDER_ID/move-to-team?team=TEAM' \
  -H "Authorization: Bearer $MARKDROP_TOKEN"
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/folders/FOLDER_ID/move-to-team?team=TEAM", {
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
  },
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.get(
    "https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/folders/FOLDER_ID/move-to-team?team=TEAM",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
)
r.raise_for_status()
print(r.json())
```
