Folders

Folders hold the different types of documents and templates.

Create folder

POSThttps://api.openai.com/v1/create_folder

Creates a folder

Request body

Name String Required The name of the folder to create

Desc String A detailed description of the folder's purpose or content

Returns

The created folder object

curl api.koncile.ai/v1/create_folder/ \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY" \
  -d '{
    "name": "string",
    "desc": "string"
  }'

Fetching folder

GEThttps://api.openai.com/v1/fetch_folder/{folder_id}

Fetches all information about a folder, using the folder_id

Path parameters

Folder_id Integer Required The id of the folder to fetch

Returns

The folder object

curl api.koncile.ai/v1/fetch_folder/?folder_id=folder_id \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY"

Update folder

PUThttps://api.openai.com/v1/update_folder/{folder_id}

Updates a folder, using the folder_id

Path parameters

Folder_id Integer Required The id of the folder to update

Request body

name String The name of the folder to update

desc String A detailed description of the folder's purpose or content to update

Returns

The folder object

curl api.koncile.ai/v1/update_folder/?folder_id=folder_id \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY"

Delete folder

DELETEhttps://api.openai.com/v1/delete_folder/{folder_id}

Deletes a folder, using the folder_id

Path parameters

folder_id Integer Required The id of the folder to delete

override Boolean If True forces deletion. Default False

curl api.koncile.ai/v1/delete_folder/?folder_id=folder_id \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY"

Folder Object

id Integer

name String The name of the folder

desc String A detailed description of the folder's purpose or content

Last updated

Was this helpful?