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
Default JSON
Possible Values
CBORJSONSMILEYAML
Possible Values
INDEXCREATEUPDATEDELETE
Default NONE
Possible Values
IMMEDIATEWAIT_UNTILNONE
Possible Values
CreatedUpdatedDeletedNotFoundNoOp
SubType string
Min items 1
SubType string