/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}/child_chunks/{child_chunk_id}Update child chunk content
Updates the text content of a child chunk within a document chunk in a knowledge base. Provide the new text in content to replace the existing child chunk content. The response includes the updated child chunk object.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Child chunk update payload containing the replacement text.
One documented failure
invalid_paramVector store operation failed: [Errno 111] Connection refused
invalid_param
One documented failure
forbiddenDataset api access is not enabled.
forbidden (api access)
One documented failure
not_foundDataset not found.
not_found
One documented failure
service_unavailableUnable to verify vector space usage right now. Please try again later.
service_unavailable
A 400 is returned when re-indexing the child chunk in the vector store fails; a 403 is returned when access, subscription capacity, request limits, or plan restrictions block the update. A 404 is returned when the knowledge base, document, parent chunk, or child chunk cannot be found; a 503 is returned when vector-space usage cannot be verified on the Cloud Sandbox plan. The dataset_id path parameter, document_id path parameter, segment_id path parameter, and child_chunk_id path parameter must be UUIDs. The request body must include content.