Skip to Content
Docs

Adds a new chunk to the document

POST
/api/add_chunk

Adds a new chunk to 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
id*string

Document ID

metadata?

Metadata associated with the chunk

text*string

Text of the chunk

Response Body

Success

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