Skip to main content
PATCH
Edit Knowledge Base
New content is processed in the background, as on creation.

Add content

  • new_files: 2 MB each, 5 MB in total, with optional new_files_metadata
  • new_faqs: each FAQ is a {"question", "answer"} object

Remove content

Pass IDs from Get knowledge base. Removal is permanent.

Authorizations

X-API-KEY
string
header
required

Headers

X-API-KEY
string
required

(Required) Your Ringg AI API key.

Example:

"rg_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Body

multipart/form-data
kb_id
string
required

(Required) ID of the knowledge base to edit

Example:

"550e8400-e29b-41d4-a716-446655440000"

files_to_remove
string

(Optional) JSON string array of file IDs to remove

Example:

"[\"7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d\", \"8b9c0d1e-2f3a-4b5c-6d7e-8f9a0b1c2d3e\"]"

urls_to_remove
string

(Optional) JSON string array of URLs to remove

Example:

"[\"https://example.com/old-page\"]"

faqs_to_remove
string

(Optional) JSON string array of FAQ IDs to remove

Example:

"[\"9c0d1e2f-3a4b-5c6d-7e8f-9a0b1c2d3e4f\", \"0d1e2f3a-4b5c-6d7e-8f9a-0b1c2d3e4f5a\"]"

new_files
file[]

(Optional) Array of new files to upload

new_urls
string

(Optional) JSON string array of new URLs to add

Example:

"[\"https://example.com/new-docs\"]"

new_faqs
string

(Optional) JSON string array of new FAQ objects

Example:

"[{\"question\": \"Do you ship internationally?\", \"answer\": \"Yes, worldwide shipping available\"}]"

new_files_metadata
string

(Optional) JSON string object with metadata for new files

Example:

"{}"

Response

Knowledge base updated successfully.

message
string
Example:

"Knowledge Base edit initiated"

kb_id
string
Example:

"550e8400-e29b-41d4-a716-446655440000"

items_removed
integer
Example:

2

new_files_queued
integer
Example:

1

new_files
object[]