Skip to main content
PUT

Overview

Update one of your organization’s knowledge bases. Send only the fields you want to change. Existing files are kept.
Files uploaded with this endpoint are stored but the knowledge base is not indexed again, so agents can’t answer from them yet. To add files that agents can use, upload them with Create Knowledge Base using the same knowledgeBaseName; that indexes the whole knowledge base again.

Prerequisites

  • An API key for your workspace
  • The knowledge base ID, from Get Knowledge Bases
  • Send the request as multipart/form-data

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
ID of the knowledge base.
string
New name. An empty value is ignored.
string
New description.
file[]
Files to store: up to 50 files of up to 10 MB each. A file with the same name as an existing one replaces it.

Response

object
The updated knowledge base record. It doesn’t list files; use List Knowledge Base Documents.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – knowledgeBaseId isn’t a valid ID, File exceeds the 10MB per-file limit, or You can upload at most 50 files per request.
  • 401 Unauthorized – Missing or invalid API key.
  • 404 Not Found – KnowledgeBase not found: it doesn’t exist in your organization.
  • 429 Too Many Requests – More than 1,000 Knowledge Base requests in 15 minutes from your IP address.
  • 500 Internal Server Error – Unexpected server error.