---
title: "Move Document"
method: PUT
path: "/documents/{doc_id}/move"
---

# Move Document

`PUT /documents/{doc_id}/move`

## Request

- Base URL: `https://app.wunel.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.wunel.com/documents/{doc_id}/move`
- Auth: none declared

Move a page to another folder and/or another workspace.

A cross-workspace move needs edit rights on BOTH sides: the page itself and
the target workspace (403 otherwise). The page keeps its id, so its
block-level provenance, comments, public share link and personal grants
travel with it — the client warns about the share before moving.

## Path parameters

- `doc_id` string, required

## Request body

- MoveDocumentRequest
  - `folder_id` string, nullable
  - `workspace_id` string, nullable

## Response `200`

Successful Response

- DocumentOut
  - `id` string, required
  - `workspace_id` string, required
  - `title` string, required
  - `name` string
  - `folder_id` string, nullable
  - `markdown` string, required
  - `frontmatter` object
  - `share_token` string, nullable
  - `version` string
  - `assets` object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/wunel/apis/wunel-api.md) · [All operations](https://skmtc.dev/wunel/apis/wunel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wunel/apis/wunel-api/revisions/872fe0687a60?raw)
