# Rename or move a sidebar folder

Renames a folder (`label`, refused as a conflict when another folder already has that name) and/or moves it to index `position` among the folders, the rest closing up around it. An absent field is left alone; a rename is recorded on the workspace's activity feed. Any seat.

Access class: `workspace`.

## Endpoint

`PATCH /v1/workspace/sidebar-folders/{id}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "label": "string",
  "position": 1.5
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "createdAt": "2026-01-01T00:00:00Z",
    "createdByAccountId": "",
    "id": "",
    "label": "string",
    "position": 1.5,
    "targets": [
      "string"
    ],
    "updatedAt": "2026-01-01T00:00:00Z"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
