Skip to main content
PATCH
Update a Knowledge base name or description
Updates the name or description of an existing Knowledge base. This is not the file replace route. To replace a file, use Update a file.

Before You Start

  • API key scope: Requires an API key with the KNOWLEDGE_FOLDER_API scope. The API key itself needs the Editor role on the Knowledge base. See Share Knowledge bases with the API for setup instructions.
  • Knowledge bases: The Knowledge Folder API manages resources that appear as Knowledge bases in the Library.

Base URL

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Request Format

This endpoint accepts application/json.

Path Parameters

Request Body

Include at least one field. There is no public endpoint to create or delete a Knowledge base.

Examples

Update with cURL

Update with JavaScript

Response Format

Success Response (200 OK)

Example Response

Error Handling

Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.

Authorizations

Authorization
string
header
required

API key as Bearer token. Format "Bearer YOUR_API_KEY"

Path Parameters

folderId
string
required

The ID of the knowledge folder

Body

application/json
name
string
description
string

Response

200

Knowledge base updated successfully