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

# PATCH /model-hub/knowledge-base/

`PATCH /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

- LegacyKnowledgeBaseMutationResponse
  - `status` boolean, required
  - `result` LegacyKnowledgeBaseMutationResult, required
    - `id` string, uuid, required
    - `name` string, required
    - `organization` string, uuid, required
    - `status` string, required
    - `files` string[], required
    - `updated_at` string, date-time, required
    - `created_by` string, nullable, required
    - `last_error` string, nullable, 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)
