---
title: "POST /model-hub/knowledge-base/"
method: POST
path: "/model-hub/knowledge-base/"
tags: ["model-hub"]
---

# POST /model-hub/knowledge-base/

`POST /model-hub/knowledge-base/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/knowledge-base/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- LegacyKnowledgeBaseMutationRequest
  - `name` string
  - `kb_id` string, uuid
  - `files` string[]

## Response `200`

OK

- LegacyKnowledgeBaseCreateResponse
  - `status` boolean, required
  - `result` LegacyKnowledgeBaseCreateResult, required
    - `detail` string, required
    - `kb_id` string, uuid, required
    - `kb_name` string, required
    - `file_ids` string[], required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
