Skip to main content
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 delete a Knowledge base. To create one, use Create 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.