v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01206322659.2 KB
k2

Create a virtual directory in the knowledge base

post/orgs/{org_id}/k2/{kb_id}/directories

Path parameters

org_idstring required
kb_idstring required

Request body

directorystring required

Folder path, same format as the directory field on file upload (e.g. docs/reports).

Response

Folder already exists

createdboolean required

true if this call created the folder, false if it already existed.

directorystring required
placeholder_file_idstring required

Listing id for this folder; remove it with DELETE /orgs/{org_id}/k2/{kb_id}/files/{file_id}.