# elasticsearchDataManagement.updateDocumentByQuery

## Description
Update documents by query
This endpoint updates documents in the specified datastore that match the provided
query. The update is done using a script, and only the documents matching the query will
be updated.
<br>For details on building queries, refer to the <a href="https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update-by-query.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. -->
