Skip to main content
POST
/
api
/
r2r
/
v3
/
chunks
/
{id}
Update Chunk
curl --request POST \
  --url https://api.intelligence.io.solutions/api/r2r/v3/chunks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "text": "<string>",
  "metadata": [
    "<any>"
  ]
}'
{
  "results": {
    "id": "id",
    "document_id": "document_id",
    "owner_id": "owner_id",
    "collection_ids": [
      "collection_ids"
    ],
    "text": "text",
    "metadata": {
      "key": "value"
    },
    "vector": [
      1.1
    ]
  }
}
The chunk’s vectors will be automatically recomputed based on the new content. Users can only update chunks they own unless they are superusers.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required

ID of the chunk

Body

application/json
id
string
text
string
metadata
any[]

Response

200

results
object
I