---
title: "Create, rename or move a note folder"
method: PUT
path: "/note/folders"
tags: ["note"]
---

# Create, rename or move a note folder

`PUT /note/folders`

## Request

- Base URL: `https://api.focusbear.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.focusbear.io/note/folders`
- Auth: HTTP bearer

Creates a folder when no id is given, otherwise renames it (name) or moves it (parent_id, null for the top level). Creating with a system_key the user already has returns that folder unchanged, so a folder a client makes for itself exists once however many devices ask for it.

## Request body

- UpsertNoteFolderDto
  - `id` string, uuid: The folder to rename or move. Omitted to create one.
  - `name` string: Required when creating a folder.
  - `parent_id` object, nullable: The parent folder; null moves the folder to the top level.
  - `system_key` string: A client's stable key for a folder it makes itself. Creating with a key the user already has returns that folder unchanged, so every device finds one folder. Only read when creating.

## Response `200`

- NoteFolderResponseDto
  - `id` string, required
  - `name` string, required
  - `parent_id` string, nullable, required
  - `system_key` string, nullable, required
  - `created_at` string, required
  - `updated_at` string, required

---

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