---
title: "Rename Document"
method: PATCH
path: "/documents/{doc_id}"
---

# Rename Document

`PATCH /documents/{doc_id}`

## 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}`
- Auth: none declared

## Path parameters

- `doc_id` string, required

## Request body

- RenameRequest
  - `name` string, required

## 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)
