---
title: "Edit Chunk Content"
method: PUT
path: "/datastores/{datastore_id}/chunks/{content_id}/content"
tags: ["/datastores/{id}/documents"]
---

# Edit Chunk Content

`PUT /datastores/{datastore_id}/chunks/{content_id}/content`

Edit the content of a specific chunk in a datastore. This operation updates the chunk's text content and regenerates its embeddings.

## Path parameters

- `datastore_id` string, uuid, required — Datastore ID of the datastore containing the chunk
- `content_id` string, uuid, required — Content ID of the chunk to edit

## Request body

- EditChunkContentRequest — This class contains all editable content associated with an update to a chunk.
  - `content` string, required — The new content text for the chunk

## Response `200`

Successful Response

- EmptyResponse

## Other responses

- `422` — Validation Error

## Changes

- **2025-10-28** `c8152db45500` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/contextualai/apis/endpoints/changes/datastores/:datastore_id/chunks/:content_id/content/put.md)

---

[API](https://skmtc.dev/contextualai/apis/endpoints.md) · [All operations](https://skmtc.dev/contextualai/apis/endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/contextualai/endpoints/revisions/ca7f807eec8b/schema)
