Skip to main content
PATCH
/
knowledge-bases
/
{id}
Update Knowledge Base
curl --request PATCH \
  --url https://api.revring.ai/v1/knowledge-bases/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "sourceCount": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "sources": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "knowledgeBaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "sourceType": "file",
        "displayName": "<string>",
        "status": "queued",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "content": "<string>",
        "originalUrl": "<string>",
        "mimeType": "<string>",
        "fileSize": 123,
        "errorMessage": "<string>"
      }
    ]
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Generate API keys from the RevRing dashboard.

Path Parameters

id
string<uuid>
required

Knowledge base ID

Body

application/json
name
string

Knowledge base name

Maximum string length: 128
description
string | null

Optional description

Maximum string length: 500

Response

Knowledge base updated

data
object

Knowledge base with sources for agent retrieval