/datastores/{id}/documents

Edit Chunk Content

Changed on

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

put/datastores/{datastore_id}/chunks/{content_id}/content

Request

  • Base URL
    https://api.contextual.ai/v1
  • URL
    https://api.contextual.ai/v1/datastores/{datastore_id}/chunks/{content_id}/content
  • Auth
    HTTP bearer

Path parameters

datastore_idstring uuid required

Datastore ID of the datastore containing the chunk

content_idstring uuid required

Content ID of the chunk to edit

Request body

contentstring required

The new content text for the chunk

Response

Successful Response

EmptyResponse required

Changes