---
title: "POST /model-hub/prompt-folders/"
method: POST
path: "/model-hub/prompt-folders/"
tags: ["model-hub"]
---

# POST /model-hub/prompt-folders/

`POST /model-hub/prompt-folders/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/prompt-folders/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Create a new prompt folder

## Request body

- PromptFolder
  - `id` string, uuid
  - `name` string, required
  - `organization` string, uuid, nullable
  - `workspace` string, uuid, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `is_sample` boolean
  - `parent_folder` string, uuid, nullable
  - `created_by` string

## Response `201`

Created

- PromptFolder
  - `id` string, uuid
  - `name` string, required
  - `organization` string, uuid, nullable
  - `workspace` string, uuid, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `is_sample` boolean
  - `parent_folder` string, uuid, nullable
  - `created_by` string

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
