---
title: "Update File"
method: PUT
path: "/v1/knowledge/{kb_slug}/{filename}"
tags: ["Knowledge"]
---

# Update File

`PUT /v1/knowledge/{kb_slug}/{filename}`

Update a file's content in a knowledge base (atomic replace).

## Path parameters

- `kb_slug` string, required
- `filename` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/chonkie/apis/chonkie-api.md) · [All operations](https://skmtc.dev/chonkie/apis/chonkie-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chonkie/apis/chonkie-api/revisions/f40f036f941c?raw)
