yaml
type: "io.kestra.plugin.elasticsearch.Put"
yaml
id: elasticsearch_put
namespace: company.team

tasks:
  - id: put
    type: io.kestra.plugin.elasticsearch.Put
    connection:
      hosts:
       - "http://localhost:9200"
    index: "my_index"
    key: "my_id"
    value:
      name: "John Doe"
      city: "Paris"

yaml
id: elasticsearch_put
namespace: company.team

inputs:
  - id: value
    type: JSON
    defaults: {"name": "John Doe", "city": "Paris"}

tasks:
  - id: put
    type: io.kestra.plugin.elasticsearch.Put
    connection:
      hosts:
       - "http://localhost:9200"
    index: "my_index"
    key: "my_id"
    value: "{{ inputs.value }}"
Properties
Definitions
hosts*Requiredarray
SubTypestring
Min items1
basicAuth
passwordstring
usernamestring
headersarray
SubTypestring
pathPrefixstring
strictDeprecationModebooleanstring
trustAllSslbooleanstring
DefaultJSON
Possible Values
CBORJSONSMILEYAML
Possible Values
INDEXCREATEUPDATEDELETE
DefaultNONE
Possible Values
IMMEDIATEWAIT_UNTILNONE
Possible Values
CreatedUpdatedDeletedNotFoundNoOp

Create automations with Elasticsearch Put