# Update a Room folder (/docs/api-reference/update_room_folder)

`PATCH /v1/room-folders/{room_folder_id}` · operation `update_room_folder`

Renames, moves (parent_folder_id; null for the top) or reorders a folder: Can edit. access_mode (inherit or restricted) changes who can see it: Full access on the Room only. Moving it out of a restricted folder shows it to more people, so that is Full access only too.

**Sign-in:** a signed-in person's access token (`Authorization: Bearer …`), which AI apps get through MCP sign-in; or a Workspace API key in the `X-SMB-API-Key` header.

### Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `room_folder_id` | string | yes |  |

### Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `SMB-Workspace-Id` | string (uuid) | yes | Workspace where this operation runs. Required for user tokens and Workspace API keys. |
| `Idempotency-Key` | string | yes |  |

### Request body (JSON)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | no |  |
| `parent_folder_id` | string or null | no |  |
| `position` | integer | no |  |
| `access_mode` | one of `inherit`, `restricted` | no |  |

### Response

**200** Successful authorized response.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `room_folder_id` | string | yes |  |
| `room_id` | string | yes |  |
| `parent_folder_id` | string or null | yes | The folder it is in; null at the top (or when you can't open the folder above). |
| `name` | string | yes |  |
| `position` | integer | yes |  |
| `access_mode` | one of `inherit`, `restricted` | yes | inherit: everyone who can see the folder above (or the Room). restricted: only people added to it. |
| `item_count` | integer | yes | Folders and files inside it that you can see. |
| `access_level` | one of `view`, `edit`, `full_access` | yes | Your access on this folder. |
| `created_at` | string | yes |  |
| `updated_at` | string | yes |  |
| `request_id` | string | yes |  |

### Errors

- `400` The request is invalid.
- `401` Authentication is required.
- `403` The caller is not authorized.
- `404` The resource was not found.
- `409` The resource revision or idempotency input conflicts.
- `413` The request body is too large.
- `415` The request must be JSON.
- `422` Required evidence is missing.
- `429` Rate limit reached; honor Retry-After.
- `500` The request could not be completed.
- `502` A dependency returned an invalid response.
- `503` The service is temporarily unavailable.

### Example

```bash
curl --request PATCH "https://api.smb.co/v1/room-folders/$ROOM_FOLDER_ID" \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header "SMB-Workspace-Id: $WORKSPACE_ID" \
  --header "Idempotency-Key: $IDEMPOTENCY_KEY" \
  --header "Content-Type: application/json" \
  --data '{}'
```