PATCH /v1/indexes/products/documents/1 🔒 Bearer

Update a document

Patch one or more fields of an existing document.

Updates the fields you send. Fields you omit are kept as-is. This is the right call for stock/price updates that fire often — much cheaper than a full upsert.

# Path parameters

Name Type Description
name string The index name.
id string The document's id.

# Body

Any subset of fields declared in your index schema. The body must be a JSON object; arrays are replaced wholesale (no array-merge).

# Response

{ "data": { "id": "1", "updated": true } }
esc
PATCH /v1/indexes/products/documents/1