Elasticsearch 9 · Documents
Index a document with an ID
Create or replace a document.
curl -u elastic:$ELASTIC_PASSWORD --cacert http_ca.crt -X PUT "https://localhost:9200/products/_doc/1" -H "Content-Type: application/json" -d '{"name":"Laptop","sku":"LT-100","price":999.0}'
Official Elasticsearch 9 documentation