> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getnexor.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Knowledge Base Document

> Rename a text document and/or replace its content. At least one of `name` or `text` is required.

- `name` only: renames the document. Chunks and embeddings are untouched.
- `text` (with or without `name`): replaces the content and **re-indexes** the document. It is re-chunked and re-embedded asynchronously: `status` goes back to `pending` and returns to `ready` once processing finishes. Poll `GET /knowledge-bases/{id}/documents` to follow it.

Only documents with source type `text` accept new content; file and web documents respond `409`.



## API Specification

The full API specification for this endpoint is available in the [documentation index](https://docs.getnexor.ai/llms.txt).
