Trillet AI logo

Delete Knowledge Base File

Delete a knowledge base file associated with a specific call flow.

DELETEhttps://api.trillet.ai/v1/api/call-flows/{id}/knowledge-base/{fileKey}

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

x-workspace-idstringrequired

Workspace identifier for the API.

Path Parameters

idstringrequired

The unique identifier of the call flow from which the knowledge base file will be deleted.

fileKeystringrequired

The key of the knowledge base file to be deleted. The file key is typically a unique identifier or filename used in the storage system.

Response Fields

_idstring

The unique identifier for the call flow from which the knowledge base file was deleted.

workspaceIdstring

The identifier of the workspace associated with the call flow.

settingsobject

Contains updated settings for the call flow following the deletion of the knowledge base file.

knowledgeBaseFilesarray

An array representing the remaining knowledge base files after the deletion. Each element in the array is an object that includes details such as the file name, type, and any other relevant metadata.

{
  "_id": "callFlowId",
  "workspaceId": "workspaceIdExample",
  "settings": {
    "knowledgeBaseFiles": [
      // Remaining files after deletion
    ]
  }
}