---
title: "Rename folder"
url: "https://docs.signnow.com/docs/folder/operations/rename-folder"
type: "endpoint"
section: "folder"
slug: "folder/operations/rename-folder"
method: "PUT"
path: "/user/folder/{folder_id}"
operation_id: "rename-folder"
authorization: "bearer"
---

# Rename folder

`PUT /user/folder/{folder_id}`

This endpoint allows API users to rename a folder.

**Notes**

* The same operation is also available at `PUT /folder/{folder_id}`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `folder_id` | string | Yes | ID of the folder to rename. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "New name of the folder."
    }
  }
}
```

**Example** (`Rename folder`)

```json
{
  "name": "Signed contracts"
}
```

## Responses

### 200

The folder was renamed. Returns its ID.

**Example** (`Folder renamed`)

```json
{
  "id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"
}
```

### 400

* `name` is missing
* The folder does not exist or does not belong to the user

**Example** (`Missing name`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

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

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

## Code Examples

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

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/user/folder/{folder_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Signed contracts"}'
```

---
*Full reference: https://docs.signnow.com/docs/folder/operations/rename-folder*
