---
title: "Add a folder"
method: POST
path: "/hierarchy"
tags: ["Hierarchy"]
---

# Add a folder

`POST /hierarchy`

## Request body

- AddHierarchyInput
  - `name` string, nullable — The name of the folder
  - `parentId` string, nullable — The parent ID of the folder

## Response `201`

Created

- AddHierarchyOutput
  - `id` string, nullable — The ID of the folder

---

[API](https://skmtc.dev/closebot/apis/closebot-api.md) · [All operations](https://skmtc.dev/closebot/apis/closebot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/closebot/closebot-api/revisions/da5f5fb58534/schema)
