---
title: "Partially replaces a document in a table"
method: POST
path: "/{table}/_update/{id}"
tags: ["Index"]
---

# Partially replaces a document in a table

`POST /{table}/_update/{id}`

Partially replaces a document with given id in a table
Responds with an object of the following format: 

  ```
  {'table':'products','updated':1}
  ```

## Path parameters

- `table` string, required
- `id` integer, required

## Request body

- ReplaceDocumentRequest — Object containing the document data for replacing an existing document in a table.
  - `doc` object, required — Object containing the new document data to replace the existing one.

## Response `200`

item updated

- UpdateResponse — Success response returned after updating one or more documents
  - `table` string — Name of the document table
  - `updated` integer — Number of documents updated
  - `id` integer
  - `result` string — Result of the update operation, typically 'updated'

## Other responses

- `default` — error

## Changes

> 13 revisions in range; 2 could not be searched.

- **2025-06-30** `1911b776f18a` — 2 breaking
  - for the `path` request parameter `id`, the type/format was changed from `integer`/`int64` to `integer`/`uint64`
  - the `id` response's property type/format changed from `integer`/`int64` to `integer`/`uint64` for status `200`
- **2025-04-01** `0e6cccea382d` — 1 warning, 1 info
  - removed the optional property `_id` from the response with the `200` status
  - added the optional property `id` to the response with the `200` status
- **2024-11-14** `88a0ac494d8e` — 3 warning, 4 info
  - removed the optional property `error/oneOf[#/components/schemas/responseErrorDetails]/table` from the response with the `default` status
  - removed the optional property `id` from the response with the `200` status
  - removed the optional property `table` from the response with the `200` status
  - for the `path` request parameter `id`, the type/format was generalized from `integer`/`uint64` to `number`/``
  - …3 more

[Change history](https://skmtc.dev/manticoresoftware/apis/manticore-search-client/changes/:table/_update/:id/post.md)

---

[API](https://skmtc.dev/manticoresoftware/apis/manticore-search-client.md) · [All operations](https://skmtc.dev/manticoresoftware/apis/manticore-search-client/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/manticoresoftware/manticore-search-client/revisions/eb39c8083035/schema)
