---
title: "POST /v1/knowledge-base/files/{id}/store-chunks"
method: POST
path: "/v1/knowledge-base/files/{id}/store-chunks"
tags: ["knowledge-base"]
---

# POST /v1/knowledge-base/files/{id}/store-chunks

`POST /v1/knowledge-base/files/{id}/store-chunks`

Store or update chunks for a knowledge base file. Provide id to update existing chunks, or content to create new ones.

## Path parameters

- `id` string, required

## Request body

- object
  - `chunks` object[], required
    - `id` string
    - `content` string
    - `embedding` number[]
    - `chunkIndex` number
    - `metadata` object

## Response `200`

Default Response

---

[API](https://skmtc.dev/activepieces/apis/activepieces-documentation.md) · [All operations](https://skmtc.dev/activepieces/apis/activepieces-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/activepieces/activepieces-documentation/revisions/745e4b7f764a/schema)
