v1

latestOpenAPI 3.0.1MIT2026-07-26104203277.0 KB

Update a knowledge base item by Id.

patch/v1/voice-agents/knowledge-base/{id}

Path parameters

idstring required

Request body

itemNamestring required

The name of the knowledge base item to update.

Example request

{
  "itemName": "Updated Product Documentation"
}

Response

Successful response

successboolean
messagestring

Example response

{
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "userId": "550e8400-e29b-41d4-a716-446655440000",
    "projectId": "550e8400-e29b-41d4-a716-446655440000",
    "itemName": "Updated Product Documentation",
    "fileSize": "2.5MB",
    "type": "TEXT",
    "status": "PROCESSED",
    "failureReason": "File format not supported",
    "content": "This is the updated content of the knowledge base item...",
    "itemUrl": "https://example.com/updated-document.pdf",
    "itemUrls": [
      "https://example.com/document.pdf"
    ],
    "wordsNumber": 1298,
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-20T14:45:00Z"
  }
}