PUT
/
api
/
chunk
curl --request PUT \
  --url https://api.trieve.ai/api/chunk \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TR-Dataset: <tr-dataset>' \
  --data '{
  "chunk_html": "<p>Some HTML content</p>",
  "chunk_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "group_ids": [
    "d290f1ee-6c54-4b01-90e6-d701748f0851"
  ],
  "link": "https://example.com",
  "metadata": {
    "key1": "value1",
    "key2": "value2"
  },
  "time_stamp": "2021-01-01 00:00:00.000",
  "weight": 0.5
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Headers

TR-Dataset
string
required

The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.

Body

application/json
JSON request payload to update a chunk (chunk)

The body is of type object.

Response

204

No content Ok response indicating the chunk was updated as requested