DELETE
/
knowledge-bases
/
{knowledge_base_id}
/
sources
/
{source_id}
curl --request DELETE \
  --url https://api.totoy.ai/v1/knowledge-bases/{knowledge_base_id}/sources/{source_id} \
  --header 'Authorization: Bearer <token>'
{
  "knowledge_base_id": "kb_feMfJbeqbAEj4u8K5HqmKpUbY",
  "source_id": "src_dmZ7imKLaPcQnv5ckvGlOEAA7",
  "deleted": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

knowledge_base_id
string
required

Unique identifier for a Knowledge Base.

Maximum length: 28
source_id
string
required

Unique identifier for a Source that was uploaded to Totoy.

Maximum length: 29

Response

200
application/json
OK
knowledge_base_id
string
required

The unique identifier of the Knowledge Base the Knowledge Base Source was deleted from.

Maximum length: 28
source_id
string
required

Unique identifier for the Source which link was deleted from the Knowledge Base, so it will no longer be considered as a Knowledge Base Source.

Maximum length: 29
deleted
boolean
required

Indicates whether the Knowledge Base Source was successfully deleted. Note that only the link to the Source is deleted, not the Source itself.