---
title: "Create Folder"
method: POST
path: "/v2/folders"
tags: ["Folder API"]
---

# Create Folder

`POST /v2/folders`

Create a folder to organize folder items. Set item_type to choose the item type; pass parent_folder_id to nest under an existing folder of the same type.

## Request body

- SvflowPublicapiCreateFolderRequest
  - `teamId` string, required — The ID of the team.
  - `name` string, required — The name of the folder.
  - `itemType` 'FOLDER_ITEM_TYPE_UNSPECIFIED' | 'FOLDER_ITEM_TYPE_FOLDER' | 'FOLDER_ITEM_TYPE_WORKFLOW' | 'FOLDER_ITEM_TYPE_GUIDANCE', required — Types of items that can appear in folder contents.
  - `parentFolderId` string, nullable — Optional parent folder. Unset creates the folder at the root. The parent must be of the same item_type.

## Response `200`

Success

- SvflowPublicapiCreateFolderResponse
  - `data` SvflowPubapimodelsFolder — A folder organizing a specific type of item within a team.
    - `id` string — The ID of the folder.
    - `teamId` string — The ID of the team that the folder belongs to.
    - `name` string — The name of the folder.
    - `itemType` 'FOLDER_ITEM_TYPE_UNSPECIFIED' | 'FOLDER_ITEM_TYPE_FOLDER' | 'FOLDER_ITEM_TYPE_WORKFLOW' | 'FOLDER_ITEM_TYPE_GUIDANCE' — Types of items that can appear in folder contents.
    - `parentFolderId` string, nullable — The ID of the parent folder. Unset when the folder is at the root of the team's folder tree.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/serval/apis/serval-public-api.md) · [All operations](https://skmtc.net/serval/apis/serval-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/serval/serval-public-api/versions/0549515e9384/schema)
