Update Folder

Update a folder. Pass parent_folder_id: null to move to root; omit the field to leave it unchanged.

Authentication

AuthorizationBearer

Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.

Path parameters

idstringRequired
folderIdstringRequired

Request

This endpoint expects an object.
namestringOptional
parent_folder_idstringOptional

Folder to reparent under. Prefixed wire identifier (kfolder_<26 char Crockford base32>).

clear_parent_folder_idbooleanOptional

When true, moves the folder to root (clears parent_folder_id). Wins over parent_folder_id when both are sent.

Response

The updated folder.
idstring
kb_idstring

Prefixed wire identifier (kb_<26 char Crockford base32>) of the owning knowledge base.

parent_folder_idstring or null
namestring
document_countinteger
created_atdatetime
updated_atdatetime

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error