Skip to main content
PATCH
/
v1
/
senders
/
{senderId}
/
agent
/
knowledge-bases
/
{kbId}
Update knowledge base
curl --request PATCH \
  --url https://api.zavu.dev/v1/senders/{senderId}/agent/knowledge-bases/{kbId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "knowledgeBase": {
    "id": "<string>",
    "agentId": "<string>",
    "name": "<string>",
    "documentCount": 123,
    "totalChunks": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "description": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

senderId
string
required
kbId
string
required

Body

application/json
name
string
Maximum string length: 100
description
string | null

Response

Knowledge base updated.

knowledgeBase
object
required