Elasticsearch 9 · Documents

Update fields

Merge fields into an existing document.

curl -u elastic:$ELASTIC_PASSWORD --cacert http_ca.crt -X POST "https://localhost:9200/products/_update/1" -H "Content-Type: application/json" -d '{"doc":{"price":899.0}}'

Official Elasticsearch 9 documentation

More documents commands

All documents commands · Elasticsearch 9 cheatsheet

Was this page helpful?