Example uses basic HTTP, which translate easily to cURL and other HTTP applications. They also match the Sense syntax, which will be renamed to Console in Kibana 5.0.
Note: The example inserts <#> to help draw attention to parts. Those should be removed if you copy it!
PUT /my_index <1>...