Skip to main content
POST
/
v1
/
folders
Create Folder Handler
curl --request POST \
  --url http://localhost:8000/v1/folders \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "parent_path_part_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "part_type": "FOLDER",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "path_part_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "parent_path_part_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "materialized_path": "<string>",
  "system_managed": true,
  "tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "tags": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "color": "<string>",
      "tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "description": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.knowledgestack.ai/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string | null

Cookies

ks_uat
string | null

Body

application/json

Request to create a new folder.

name
string
required

Folder name

Required string length: 1 - 255
parent_path_part_id
string<uuid>
required

Parent PathPart ID (must be a FOLDER type)

Response

Successful Response

Folder response model.

part_type
enum<string>
required

Path part type

Available options:
FOLDER
id
string<uuid>
required

Folder ID

path_part_id
string<uuid>
required

PathPart ID

name
string
required

Folder name

parent_path_part_id
string<uuid> | null
required

Parent PathPart ID

materialized_path
string
required

Full materialized path from root

system_managed
boolean
required

Whether this folder is system-managed

tenant_id
string<uuid>
required

Tenant ID

created_at
string<date-time>
required

Creation timestamp

updated_at
string<date-time>
required

Last update timestamp

tags
TagResponse · object[] | null

Tags attached to this folder