Edit Knowledge Base
Edits an existing knowledge base by adding or removing files, URLs, and FAQs. Rate limit: 20 requests per hour per workspace. File size limit: 2 MB per file, 5 MB total.
Documentation Index
Fetch the complete documentation index at: https://docs.ringg.ai/llms.txt
Use this file to discover all available pages before exploring further.
Edit Knowledge Base
Update an existing knowledge base by adding new content or removing existing files, URLs, and FAQs. This endpoint allows you to maintain and refine your knowledge base over time.Adding Content
Add new files, URLs, or FAQs to expand your knowledge base:new_files: Upload additional documentsnew_urls: Index new web pagesnew_faqs: Add more question-answer pairs
Removing Content
Remove outdated or incorrect content using IDs:files_to_remove: JSON array of file IDsurls_to_remove: JSON array of URLsfaqs_to_remove: JSON array of FAQ IDs
Example Removal
Response Details
The response includes:items_removed: Count of items successfully removednew_files_queued: Count of new files being processednew_files: Array of newly added files with their IDs and processing status
Important Notes
- Atomic Operations: Additions and removals are processed together
- Processing Time: New content is processed asynchronously
- No Rollback: Removals are permanent - ensure you have the correct IDs
Headers
(Required) Your Ringg AI API key.
"7251cb4b-3373-43a4-844c-b27a1d45e0c9"
Body
(Required) ID of the knowledge base to edit
"550e8400-e29b-41d4-a716-446655440000"
(Optional) JSON string array of file IDs to remove
"[\"7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d\", \"8b9c0d1e-2f3a-4b5c-6d7e-8f9a0b1c2d3e\"]"
(Optional) JSON string array of URLs to remove
"[\"https://example.com/old-page\"]"
(Optional) JSON string array of FAQ IDs to remove
"[\"9c0d1e2f-3a4b-5c6d-7e8f-9a0b1c2d3e4f\", \"0d1e2f3a-4b5c-6d7e-8f9a-0b1c2d3e4f5a\"]"
(Optional) Array of new files to upload
(Optional) JSON string array of new URLs to add
"[\"https://example.com/new-docs\"]"
(Optional) JSON string array of new FAQ objects
"[{\"question\": \"Do you ship internationally?\", \"answer\": \"Yes, worldwide shipping available\"}]"
(Optional) JSON string object with metadata for new files
"{}"
