> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.vapi.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.vapi.ai/_mcp/server.

# Update a Knowledge Base V2

PATCH https://api.vapi.ai/v2/knowledge-base/{id}
Content-Type: application/json

Reference: https://docs.vapi.ai/api-reference/knowledge-bases-v-2/knowledge-base-v-2-controller-update

## Authentication

- `Authorization` header (bearer token, required) — Authenticate server-side requests with a private Vapi API key. Create or copy a key from the [Vapi Dashboard](https://dashboard.vapi.ai) and send it in the `Authorization` header as `Bearer <token>`. Keep private API keys out of client-side code and public repositories.

## Request

### Path parameters

- `id` (string, required) — The unique identifier for the resource.

### Body (application/json)

This endpoint expects an UpdateKnowledgeBaseV2DTO.

- `name` (string, optional)
- `description` (string, optional, nullable)

## Response

### 200

- `name` (string, required)
- `id` (string, required)
- `orgId` (string, required)
- `createdAt` (datetime, required)
- `updatedAt` (datetime, required)
- `description` (string, optional, nullable)

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "name": "string",
  "id": "string",
  "orgId": "string",
  "createdAt": "2024-01-15T09:30:00Z",
  "updatedAt": "2024-01-15T09:30:00Z",
  "description": "string"
}
```