Folders

List folder

get

List folders on a given workspace for a knowledge base.

Path parameters
workspaceIdstringRequired
Query parameters
limitinteger · min: 1 · max: 100Optional

Limits the project of results to return

Default: 10
pageTokenstring · max: 8000Optional

Pagination token that keeps of track of the current position in the list

reversebooleanOptional

Order in which to retrieve the results

Default: false
parentFolderPathsstring[] | nullableOptional

Paths of the parent folders. This can be used to narrow search to a specific folder

folderPathsstring[] | nullableOptional

Paths of the folders. This can be used to narrow search to a specific set of folder paths

withSubFoldersboolean | nullableOptional

Include subfolders for the currently requested folders

orderBystringOptional

Special ordering setting for the result folders

Example: createdAt:asc
statusstring · enum | nullableOptional

Filter folders based on status

Possible values:
Responses
200

OK

application/json
get
/workspaces/{workspaceId}/content/folders

Create folder

post

Create a folder on a given workspace for a knowledge base.

Path parameters
workspaceIdstringRequired
Body
iconstring | nullableOptional
namestring · min: 1 · max: 256Required

Folder name

parentFolderIdstring · uuid | nullableOptional

ID of the folder to store the new folder

parentFolderPathstring | nullableOptional

Path of the folder to store the new folder

statusstring · enumRequired

Status of the folder. If you want your documents to be visible and used by other systems, make it 'active'

Possible values:
Responses
post
/workspaces/{workspaceId}/content/folders

Get folder

get

Get folders on a given workspace for a knowledge base.

Path parameters
workspaceIdstringRequired
contentPathstringRequired
Responses
200

OK

application/json
get
/workspaces/{workspaceId}/content/folders/{contentPath}

Delete folder

delete

Delete a folder on a given workspace for a knowledge base.

Path parameters
workspaceIdstringRequired
contentPathstringRequired
Responses
delete
/workspaces/{workspaceId}/content/folders/{contentPath}

No content

Update folder

patch

Update a folder on a given workspace for a knowledge base.

Path parameters
workspaceIdstringRequired
contentPathstringRequired
Body
iconstring | nullableOptional
namestringOptional

Folder name

statusstring · enumOptional

Status of the folder. If you want your documents to be visible and used by other systems, make it 'active'

Possible values:
Responses
200

Updated

application/json
patch
/workspaces/{workspaceId}/content/folders/{contentPath}

Was this helpful?