curl --request PATCH \ --url https://api.totoy.ai/v1/knowledge-bases/{knowledge_base_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Totoy Developer Support Assistant", "instructions": "You are a developer support assistant for the developers using the Totoy API."}'
Copy
{ "knowledge_base_id": "kb_feMfJbeqbAEj4u8K5HqmKpUbY", "name": "Totoy Developer Support Assistant", "instructions": "You are a developer support assistant for the developers using the Totoy API.", "project_id": "pj_avX7imfLaPcQnv5ckvGlOEBA9", "created_at": "2023-07-05T12:00:00Z", "updated_at": "2023-07-15T12:34:56Z"}
Knowledge Bases
Modifies a Knowledge Base.
PATCH
/
knowledge-bases
/
{knowledge_base_id}
Modifies a Knowledge Base.
Copy
curl --request PATCH \ --url https://api.totoy.ai/v1/knowledge-bases/{knowledge_base_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Totoy Developer Support Assistant", "instructions": "You are a developer support assistant for the developers using the Totoy API."}'
Copy
{ "knowledge_base_id": "kb_feMfJbeqbAEj4u8K5HqmKpUbY", "name": "Totoy Developer Support Assistant", "instructions": "You are a developer support assistant for the developers using the Totoy API.", "project_id": "pj_avX7imfLaPcQnv5ckvGlOEBA9", "created_at": "2023-07-05T12:00:00Z", "updated_at": "2023-07-15T12:34:56Z"}