cURL
curl --request PUT \ --url https://dev.voice.ai/api/v1/knowledge-base/{kb_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "<string>", "documents": [ { "content": "<string>", "metadata": {} } ] } '
{ "kb_id": 123, "document_count": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "documents": [ {} ], "name": "<string>", "description": "<string>", "message": "<string>" }
Update an existing knowledge base. If documents are provided, they replace ALL existing documents in the knowledge base.
Bearer token authentication. Use your API key as the bearer token. Format: Authorization: Bearer
New knowledge base name
New knowledge base description
Replaces all existing documents if provided
1
Show child attributes
Successful Response