Update Chunk
Chunks
Update Chunk
Update a chunk's content or metadata.
Args:
chunk_id: ID of the chunk to update
request: UpdateChunkRequest with fields to update
Returns:
ChunkResponse with updated chunk
Examples:
Update chunk content:
PATCH /chunks/chunk_123
{
"content": "Updated chunk text"
}
Update chunk metadata:
PATCH /chunks/chunk_123
{
"metadata": {
"category": "important",
"tags": ["updated"]
}
}
Update both content and metadata:
PATCH /chunks/chunk_123
{
"content": "Updated text",
"metadata": {"status": "reviewed"}
}
Note:
Updating chunk content will regenerate the embedding vector.
PATCH
Update Chunk
Documentation Index
Fetch the complete documentation index at: https://docs.mielto.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The workspace ID
Path Parameters
Chunk ID
Body
application/json
Response
Successful Response
Response model for a single chunk.
Unique chunk ID
Parent content ID
Collection ID
Chunk text content
Chunk metadata
Index of this chunk within the document
Size of chunk in bytes
Creation timestamp