---
title: "Move a page"
description: "Puts a page inside another page (parent: its address) or at the top level (null)."
canonical_url: https://docs.markdrop.in/api/pages/move-a-page
last_updated: 2026-11-04
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Move a page

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

Puts a page inside another page (`parent`: its address) or at the top level (`null`). If that changes who can read it, the answer is `409` with `code: "access_change"` and the readers before and after; send `confirm_access_change: true` to move it anyway.

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

## Path parameters

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

## Request body

`application/json`, required.

- `parent` (string): The address of the page to put it in, or `null` for the top level. 1–64 characters.
- `confirm_access_change` (boolean): Move it even though that changes who can read it. Default `false`.

## Responses

- `200`: OK.
  - `slug` (string): The address: `markdrop.in/<slug>`.
  - `url` (string): The link to share.
  - `folder_path` (array of string)
  - `title` (string | null): Shown on the page and in link previews.
  - `content` (string): The document's Markdown.
  - `created_at` (string (date-time)): ISO 8601, for example `2026-11-30T12:00:00Z`.
  - `updated_at` (string (date-time)): ISO 8601, for example `2026-11-30T12:00:00Z`.
  - `expires_at` (string (date-time) | null): ISO 8601, for example `2026-11-30T12:00:00Z`.
  - `views` (integer): Default `0`.
  - `rev` (integer | null)
  - `is_password_protected` (boolean): Default `false`.
  - `is_owned` (boolean): Default `false`.
  - `is_owner` (boolean): Default `false`.
  - `id` (string | null)
  - `ref` (string | null)
  - `google_doc_url` (string | null)
  - `google_doc_stale` (boolean): Default `false`.
  - `vscode_synced` (boolean): Default `false`.
  - `encrypted` (boolean): Set by clients that encrypt in the browser: `content` and `title` are already ciphertext. The server never sees the key. Default `false`.
  - `kind` (string): `markdown` for a document, `artifact` for a file. Default `"markdown"`.
  - `mime` (string | null)
  - `renderer` (string | null)
  - `type_label` (string | null)
  - `size_bytes` (integer | null)
  - `original_filename` (string | null)
  - `artifact_url` (string | null)
  - `download_url` (string | null)
  - `poster_url` (string | null)
  - `media` (object | null)
  - `file_version` (integer | null)
  - `workspace_url` (string | null): The address on its workspace's own domain, when it has a live one.
  - `access_level` (string): Who can open it: `link` (anyone with the link), `private` (only you and the people you share it with) or `workspace` (members of its workspace). Default `"link"`.
  - `workspace_id` (string | null)
  - `can` (object | null): What you may do with it: `edit`, `replace`, `settings`, `access`, `rename`, `delete`, `share`, `move`, `unshare`.
  - `read_ticket` (string | null)
  - `access_epoch` (integer): Default `0`.
  - `presence_ticket` (string | null)
  - `show_presence` (boolean | null)
  - `editor` (string | null)
  - `parent` (object | null)
  - `breadcrumbs` (array of object)
  - `children_count` (integer): Default `0`.
  - `access_inherit` (boolean | null)
  - `page_path` (array of string)
  - `template_id` (string | null)
  - `template` (object | null)
  - `page` (object | null)
  - `page_properties` (object | null)
  - `assets` (object): Default `{}`.
  - `cover_auto` (boolean): Default `false`.
  - `cover_pending` (boolean): Default `false`.
- `401`: No token, or the token is revoked or mistyped.
- `409`: The move changes who can read the page. Send `confirm_access_change: true` to go ahead.
- `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/parent \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"parent":"team-handbook"}'
```

**JavaScript**

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

**Python**

```python
import os

import requests

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