Partially update a document by ID (namespace-scoped).
Changed onPartially update a document by ID without specifying a collection.
Only the fields provided are updated; all other fields are left unchanged.
Request
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/documents/{document_id}
- Auth: HTTP bearer and API key in header X-Namespace
Path parameters
The ID of the document to patch.
Request body
Request model for partially updating a document (PATCH operation).
metadata is an object of key-value pairs. Each key you send is set on the stored metadata. Keys you omit stay as they are. A key whose value is null is removed from the stored metadata. metadata: null returns a 422. PUT and PATCH treat metadata the same way.
A key at the top level of the body sets the document's top-level field of that name. It is a separate field from metadata.<key>: a passthrough field such as brand_id sits at the top level, so send {"brand_id": "x"} to change it; {"metadata": {"brand_id": "x"}} adds metadata.brand_id and leaves the top-level brand_id as it was.
Response
Successful Response
Example response
{
"_internal": {
"collection_id": "col_articles",
"created_at": "2025-10-31T10:00:00Z",
"document_id": "doc_f8966ff29c18e20c6b45e053",
"internal_id": "org_abc123",
"lineage": {
"chain": [
{
"collection_id": "col_articles",
"feature_extractor_id": "text_extractor_v1",
"timestamp": "2025-10-31T10:00:00Z"
}
],
"path": "bkt_content/col_articles",
"root_bucket_id": "bkt_content",
"root_object_id": "obj_article_001",
"source_object_id": "obj_article_001",
"source_type": "bucket"
},
"metadata": {
"ingestion_status": "COMPLETED"
},
"modality": "text",
"namespace_id": "ns_xyz789",
"source_blobs": [
{
"blob_id": "blob_text_001",
"blob_property": "content",
"blob_type": "text"
}
],
"updated_at": "2025-10-31T10:00:00Z"
},
"author": "Dr. Smith",
"collection_id": "col_articles",
"description": "Text document with _internal structure",
"document_id": "doc_f8966ff29c18e20c6b45e053",
"title": "AI in Healthcare"
}Changes
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning
- info
added the optional property
to the response with the status
- info