---
title: "Update a knowledge base"
method: PUT
path: "/knowledge_base/{id}"
tags: [""]
---

# Update a knowledge base

`PUT /knowledge_base/{id}`

## Path parameters

- `id` string, required — Knowledge base ID.

## Headers

- `Authorization` string, required

## Request body

- object
  - `name` string — Name of the knowledge base.
  - `rag_use_condition` string — When this knowledge base should be used.

## Response `200`

200

- UpdateKnowledgeBaseResponse200
  - `status` string
  - `response` KnowledgeBaseIdPutResponsesContentApplicationJsonSchemaResponse
    - `body` string
    - `knowledge_base_id` string — Knowledge base ID.

## Other responses

- `400` — 400

---

[API](https://skmtc.net/synthflow/apis/platform-api.md) · [All operations](https://skmtc.net/synthflow/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/synthflow/platform-api/versions/decb652b52e0/schema)
