DELETE
/
v1
/
api
/
call-flows
/
{id}
/
knowledge-base
/
{fileKey}
curl --request DELETE \
  --url https://api.trillet.ai/v1/api/call-flows/{id}/knowledge-base/{fileKey} \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>'
{
  "_id": "callFlowId",
  "workspaceId": "workspaceIdExample",
  "settings": {
    "knowledgeBaseFiles": [
      // Remaining files after deletion
    ]
  }
}

Headers

x-api-key
string
required

API key used for authenticating requests to the API.

x-workspace-id
string
required

Workspace identifier for the API.

Path Parameters

id
string
required

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

fileKey
string
required

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

_id
string

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

workspaceId
string

The identifier of the workspace associated with the call flow.

settings
object

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

knowledgeBaseFiles
array

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
    ]
  }
}