---
title: "Create Folder"
method: POST
path: "/api/v1/folders"
tags: ["authed"]
---

# Create Folder

`POST /api/v1/folders`

## Request

- Base URL: `https://api.teaflask.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teaflask.com/api/v1/folders`
- Auth: none declared

A new folder, appended at the end of its sibling list.

## Request body

- CreateFolderRequest
  - `name` string, required
  - `icon` string, nullable
  - `parent_id` string, uuid, nullable

## Response `201`

Successful Response

- FolderResponse: One folder in the organization's single-parent folder tree.
  - `id` string, uuid, required: The folder's id.
  - `organization_id` string, uuid, required: The organization the folder belongs to.
  - `parent_id` string, uuid, nullable, required: The folder it sits inside; null for a top-level folder.
  - `position` integer, required: Its place among the folders that share its parent, from 0.
  - `name` string, required: The folder's name.
  - `icon` string, nullable, required: The folder's icon; null when it has none.
  - `created_at` string, date-time, required: When the folder was created.
  - `updated_at` string, date-time, required: When the folder last changed.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `405`: Method not allowed
- `422`: Validation error
- `500`: Internal server error

---

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