# elasticsearchDataManagement.updateDocumentById

## Description
Update a document by identifier
This endpoint updates an existing document in the specified datastore using its
unique identifier (ID). The update can be performed either using a script or
directly via the 'doc' object for partial field updates.
<br>For details on building queries, refer to the
<a href="https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update.html">
Elasticsearch Query Documentation</a>.

## When to use
<!-- Describe user intent that should trigger this tool -->

## What this returns
<!-- Describe the shape / purpose of the response -->

## Notes
<!-- Constraints, ordering, related tools, etc. -->
