Skip to Content
Docs

Updates an existing chunk in the document

PUT
/api/update_chunk

Updates an existing chunk in the document. 409 (code source_busy) while a sync or page change on the source runs.

Personal access token scope: sources:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
chunk_id*string

Chunk ID to update

id*string

Document ID

metadata?

Updated metadata associated with the chunk

text?string

New text of the chunk

Response Body

Success

Example Request
curl -X PUT 'http://localhost:7091/api/update_chunk' \  -H 'Content-Type: application/json' \  -d '{  "chunk_id": "string",  "id": "string"}'
Example Response200
Empty