---
title: "Detach a knowledge base"
method: POST
path: "/knowledge_base/{knowledge_base_id}/detach"
tags: [""]
---

# Detach a knowledge base

`POST /knowledge_base/{knowledge_base_id}/detach`

## Path parameters

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

## Headers

- `Authorization` string, required

## Request body

- object
  - `model_id` string, required — id of an agent from which knowledge base needs to be detached

## Response `200`

200

- DetachKnowledgeBaseResponse200
  - `status` string
  - `response` KnowledgeBaseKnowledgeBaseIdDetachPostResponsesContentApplicationJsonSchemaResponse
    - `body` string
    - `model_id` string

---

[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)
