---
title: "Update knowledge document"
method: PUT
path: "/knowledge/{id}"
tags: ["Knowledge"]
---

# Update knowledge document

`PUT /knowledge/{id}`

## Path parameters

- `id` string, required

## Request body

- ModelsUpdateKnowledgeDocRequest
  - `answer_type` string
  - `code_lang` string
  - `content` string, required
  - `description` string
  - `guide_type` string
  - `question` string

## Response `200`

OK

- object
  - `data` object
    - `answer_type` string
    - `code_lang` string
    - `content` string
    - `description` string
    - `doc_type` string
    - `flow_id` integer
    - `guide_type` string
    - `id` string
    - `manual` boolean
    - `part_size` integer
    - `question` string
    - `subtask_id` integer
    - `task_id` integer
    - `total_size` integer
    - `user_id` integer
  - `status` string

## Other responses

- `400` — invalid request
- `403` — not permitted or wrong owner
- `404` — document not found
- `500` — internal error
- `503` — embedding provider not configured

## Changes

- **2026-05-04** `eac03ab3c1e0` — 1 info
  - endpoint added
- **2026-03-26** `fe95938acc20` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/vxcontrol/apis/pentagi-swagger-api/changes/knowledge/:id/put.md)

---

[API](https://skmtc.dev/vxcontrol/apis/pentagi-swagger-api.md) · [All operations](https://skmtc.dev/vxcontrol/apis/pentagi-swagger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vxcontrol/pentagi-swagger-api/revisions/7c1cbf7abaa1/schema)
