DELETE
/
projects
/
{project_id}
curl --request DELETE \
  --url https://api.totoy.ai/v1/projects/{project_id} \
  --header 'Authorization: Bearer <token>'
{
  "project_id": "pj_avX7imfLaPcQnv5ckvGlOEBA9",
  "knowledge_base_ids": [
    "kb_feMfJbeqbAEj4u8K5HqmKpUbY",
    "kb_kfjd34sfgsd2gfskijuh23zgt"
  ],
  "source_ids": [
    "src_oXiYDg8QOc9JsOk86idRXiywD",
    "src_qoY7rSGkiWtn4NP8kPXc7xzrq"
  ],
  "deleted": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

project_id
string
required

Unique identifier for a Project created in Totoy.

Maximum length: 28

Response

200
application/json
OK
project_id
string
required

The unique identifier of a Project.

Maximum length: 28
knowledge_base_ids
string[]
required

A list of knowledge_base_ids that were assigned to the Project.

source_ids
string[]
required

A list of source_ids of Sources that were assigned to the Project.

deleted
boolean
required

Indicates whether the Project, the Sources and Knowledge Bases have been successfully deleted.