---
title: "Update Document"
method: PUT
path: "/user/knowledgebases/{knowledgebaseId}/documents/{documentId}"
tags: ["Knowledge Bases"]
---

# Update Document

`PUT /user/knowledgebases/{knowledgebaseId}/documents/{documentId}`

## Request

- Base URL: `https://app.famulor.de/api`
- URL: `https://app.famulor.de/api/user/knowledgebases/{knowledgebaseId}/documents/{documentId}`
- Auth: HTTP bearer

Update the name or description of a document in a Famulor knowledge base via API. Keep your AI voice agent's source materials organized and labelled.

[Docs](https://docs.famulor.io/api-v1/knowledgebases/update-document)

## Path parameters

- `knowledgebaseId` integer, required
- `documentId` integer, required

## Request body

- object
  - `name` string: The new name for the document (max. 255 characters)
  - `description` string: The new description for the document (max. 255 characters)

## Response `200`

Success

- object
  - `message` string: Success message
  - `data` object: The updated document object
    - `id` integer: The unique identifier of the document
    - `name` string: The name of the document
    - `description` string: Description of the document
    - `type` string: Document type
    - `type_label` string: Human-readable type label
    - `status` string: Processing status
    - `status_label` string: Human-readable status label
    - `updated_at` string: ISO 8601 timestamp of last update

## Other responses

- `401`: Fehlender oder ungültiger API-Key.
- `404`: Not Found
- `422`: Validation Error

---

[API](https://skmtc.dev/famulor/apis/famulor-api.md) · [All operations](https://skmtc.dev/famulor/apis/famulor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/famulor/apis/famulor-api/revisions/3b938c370721?raw)
