---
title: "Upload content to a knowledgebase."
method: POST
path: "/knowledgebase/{knowledgebase_code}/item"
tags: ["Knowledgebase"]
---

# Upload content to a knowledgebase.

`POST /knowledgebase/{knowledgebase_code}/item`

## Path parameters

- `knowledgebase_code` string, required

## Request body

- KnowledgebaseItemRequest
  - `source` string, required — You should use this field to specify the source of the content like url, filename, etc. This will be used for citation purposes.
  - `metadata` object — You can use this field to specify any metadata associated with the content.
  - `content` string, required — The content that you want to upload to the knowledgebase.

## Response `200`

Successful response

- KnowledgebaseItemResponse
  - `message` string
  - `id` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/propulsion-ai/apis/propulsionai-api.md) · [All operations](https://skmtc.net/propulsion-ai/apis/propulsionai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/propulsion-ai/propulsionai-api/versions/643ad4ee18ac/schema)
