cURL
curl --request PATCH \ --url https://api.example.com/v1/knowledge-bases/{knowledge_base_id}/document/{document_id} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "name": "<string>", "summary": "<string>", "short_summary": "<string>", "status": "trained", "doc_type": "<string>", "error": {}, "prefix": "<string>", "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "summary": "<string>", "status": "trained", "error": {}, "updated_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "size": 123, "short_summary": "<string>", "doc_type": "<string>", "source_type": "Document", "source_metadata": {}, "content_type": "<string>", "has_conversion": true, "doc_metadata": {}, "name": "<string>", "prefix": "<string>", "uri": "<string>", "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
Update a document in a knowledge base
trained
training
error
uploaded
folder
Successful Response
Document
Google Drive
Notion
Website
OneDrive
Slack
Linear
Github
Teams
Sharepoint
Custom