---
title: "Move document"
url: "https://docs.signnow.com/docs/document/operations/move-document"
type: "endpoint"
section: "document"
slug: "document/operations/move-document"
method: "POST"
path: "/document/{document_id}/move"
operation_id: "move-document"
authorization: "bearer"
---

# Move document

`POST /document/{document_id}/move`

This endpoint allows API users to move a document to a folder.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "folder_id": {
      "type": "string",
      "description": "ID of the folder where you'd like to keep this document"
    }
  }
}
```

**Example** (`Request`)

```json
{
  "folder_id": "afffdd08d81dd168981d9a0dcceb2fb24c2ab56a"
}
```

## Responses

### 200

The document was moved to the folder.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

* Wrong, expired, or missing token.
* The document doesn't exist.
* The document belongs to another user.
* `folder_id` is missing.
* The folder doesn't exist or belongs to another user.
* Documents can't be moved to the selected folder, for example the `Templates` folder.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "not readable"
    }
  ]
}
```

**Example** (`Folder not found`)

```json
{
  "errors": [
    {
      "code": 65611,
      "message": "folder resource does not exist."
    }
  ]
}
```

**Example** (`Missing folder_id`)

```json
{
  "errors": [
    {
      "code": 65611,
      "message": "Param folder_id is not provided."
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

**Example** (`Folder not allowed`)

```json
{
  "errors": [
    {
      "code": 65615,
      "message": "cannot place document in this folder"
    }
  ]
}
```

### 403

An organization admin can read the document but isn't its owner. Only the owner, or a team admin when the organization settings allow it, can move a document.

**Example** (`Not allowed to move`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Moving document is allowed only for owner and team admin (if allowed by the organization settings)."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/{document_id}/move" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"folder_id": "afffdd08d81dd168981d9a0dcceb2fb24c2ab56a"}'
```

---
*Full reference: https://docs.signnow.com/docs/document/operations/move-document*
