---
title: "Document move to folder"
method: POST
path: "/public/v1/documents/{id}/move-to-folder/{folder_id}"
tags: ["Documents"]
---

# Document move to folder

`POST /public/v1/documents/{id}/move-to-folder/{folder_id}`

## Request

- Base URL: `https://api.pandadoc.com`
- URL: `https://api.pandadoc.com/public/v1/documents/{id}/move-to-folder/{folder_id}`
- Auth: one of:
  - API key in header `Authorization`
  - OAuth 2
    - Authorization code: `https://app.pandadoc.com/oauth2/authorize`
    - Token URL: `https://api.pandadoc.com/oauth2/access_token`
- TypeScript: <https://skmtc.dev/pandadoc/apis/pandadoc-public-api/docs/public/v1/documents/:id/move-to-folder/:folder_id/post.ts> (a function with typed inputs; its response is checked against the schema)

This operation allows you to move a document to a folder by specifying the document ID and folder ID.

## Path parameters

- `id` string, required
- `folder_id` string, required

## Response `204`

No content

## Other responses

- `401`: Authentication error
- `403`: Permission error
- `404`: Not found
- `423`: Document is locked for editing
- `429`: Too Many Requests

---

[API](https://skmtc.dev/pandadoc/apis/pandadoc-public-api.md) - [All operations](https://skmtc.dev/pandadoc/apis/pandadoc-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pandadoc/apis/pandadoc-public-api/revisions/b9a306b1a421?raw)
