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.
Update a chunk. If you try to change the tracking_id of the chunk to have the same tracking_id as an existing chunk, the request will fail. Auth’ed user or api key must have an admin or owner role for the specified dataset’s organization.
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.
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.
JSON request payload to update a chunk (chunk)
The body is of type object
.
No content Ok response indicating the chunk was updated as requested
Was this page helpful?