---
title: "Create a folder"
method: POST
path: "/v1/folders"
tags: ["Folders"]
---

# Create a folder

`POST /v1/folders`

## Request

- Base URL: `https://api.capacity.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.capacity.com/v1/folders`
- Auth: one of:
  - API key in header `x-capacity-id`
  - HTTP bearer

Create a new folder.

## Request body

- object
  - `name` string, required: The name of the new folder

## Response `201`

The new folder

- object
  - `body` object: Json body data in the request
  - `parameters` object: Query parameters in the request
  - `result` FolderSchema
    - `id` string: ID of the folder
    - `name` string: Name of the folder

## Other responses

- `400`: The request contains malformed data or violates data integrity

---

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