---
title: "Upload Train Knowledge Base"
method: POST
path: "/v1/knowledge-bases/{knowledge_base_id}/upload_train"
tags: ["V1 - Knowledge Bases"]
---

# Upload Train Knowledge Base

`POST /v1/knowledge-bases/{knowledge_base_id}/upload_train`

## Request

- Base URL: `https://api.app.noxus.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.app.noxus.ai/v1/knowledge-bases/{knowledge_base_id}/upload_train`
- Auth: API key in header `X-API-Key`

## Path parameters

- `knowledge_base_id` string, uuid, required

## Query parameters

- `prefix` string: The path prefix where to upload

## Request body `multipart/form-data`

- BodyUploadTrainKnowledgeBase
  - `files` string[], required
  - `file_metadata` string, nullable: JSON list of SourceMetadata objects, one per file (positionally matched)

## Response `200`

Successful Response

- string[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/noxus/apis/noxus-backend.md) - [All operations](https://skmtc.dev/noxus/apis/noxus-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/noxus/apis/noxus-backend/revisions/0e37810b7ad5?raw)
