---
title: "PATCH /indexer-api/v1/update/{indexName}"
method: PATCH
path: "/indexer-api/v1/update/{indexName}"
tags: ["update"]
---

# PATCH /indexer-api/v1/update/{indexName}

`PATCH /indexer-api/v1/update/{indexName}`

Partial update of existing documents. If a document does not exist, no update will be performed and it gets the result status 'NOT_FOUND'. In case a document is a master product with variants, the provided master product may only contain the changed values. However if some of the variants should be updated, all data from all variant products are required, unless you have an ID data-field inside variant - then you can update single variants. Without variant ID field, the missing variants won't be there after the update! This is how single variants can be deleted.

## Path parameters

- `indexName` string, required

## Response `200`

OK. The response contains a map of ids and according result.

## Other responses

- `404` — index does not exist

## Changes

- **2021-10-22** `578b6c4c5ac1` — 1 info
  - api operation id `patchDocument` removed and replaced with `patchDocuments`
- **2020-01-29** `0be3c29195f5` — 1 info
  - the endpoint scheme security `basic-auth` was added to the API
- **2020-01-28** `dc967a44de32` — 2 info
  - api tag `update` added
  - api tag `index` removed
- **2020-01-24** `96c30bc260ed` — 1 info
  - endpoint added
- **2020-01-03** `5e91e5c71711` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/commerceexperts/apis/open-commerce-search-stack-api/changes/indexer-api/v1/update/:indexName/patch.md)

---

[API](https://skmtc.dev/commerceexperts/apis/open-commerce-search-stack-api.md) · [All operations](https://skmtc.dev/commerceexperts/apis/open-commerce-search-stack-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/commerceexperts/open-commerce-search-stack-api/revisions/456d21198a04/schema)
