API ReferenceKnowledge bases

Update a Knowledge Base

PUT
/api/knowledge-bases/{id}

Updates the details of an existing Knowledge Base.

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Bearer token for API authentication

In: header

Path Parameters

id*string

Unique ID of the Knowledge Base

Request Body

application/json

name?string

New name for the Knowledge Base

description?string

New description for the Knowledge Base

schema?object

Updated JSON schema for documents

indexingPreferences?object

Updated indexing preferences

isActive?boolean

Active status of the Knowledge Base

Response Body

application/json

curl -X PUT "https://app.docutray.com/api/knowledge-bases/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "schema": {},
    "indexingPreferences": {},
    "isActive": true,
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
Empty
Empty
Empty
Empty
Empty
Empty
Empty