Update chunk metadata
Overwrite metadata on chunks in a vector database, targeted by file IDs or chunk IDs. This replaces all existing metadata on the targeted chunks.
chunk_ids or file_ids; providing both, or neither, returns an error. This operation is destructive: the supplied metadata object replaces all existing metadata on every targeted chunk, so include any fields you want to keep.Authorizations
Your Seekr API key, sent in the Authorization header with no 'Bearer' prefix.
Path Parameters
Body
Request body for overwriting chunk metadata within a vector database.
This operation is destructive: the provided metadata object replaces all
existing metadata on the targeted chunks. Any previous metadata fields not
included in the new object are permanently removed.
Provide exactly one of file_ids or chunk_ids to target chunks.
Key-value pairs to write onto every targeted chunk. Replaces all existing metadata. Constraints: (1) flat object only — no nested objects or arrays; (2) values must be string, number, boolean, or datetime (null is rejected); (3) maximum 20 fields.
{
"category": "support_doc",
"confidence": "medium",
"source": "manual_review"
}File IDs whose chunks should have their metadata replaced.
1["file_789", "file_012"]Chunk IDs to update metadata on directly.
1["chunk_789", "chunk_012"]Response
Successful Response
The metadata object that was written to all matching chunks.