Core Plugins and tasks Put

Core Plugins and tasks Put

Certified

Update an existing Key-Value entry

Renders key, value, and namespace (defaults to the Flow namespace), then writes to the namespace KV store.

Map values are deep merged (nested object keys are preserved); keyed entries like [{key: ..., value: ...}] update JSON fields (dotted paths allowed) while [{value: ...}] replaces the entire value. Set errorOnMissing to true to fail when the key is absent, otherwise a new key-value pair is created.

yaml
type: io.kestra.plugin.core.kv.Put

Replace a string value

yaml
id: kv_put_string
namespace: company.team

tasks:
  - id: update_my_string
    type: io.kestra.plugin.core.kv.Put
    key: my-string-key
    value: "new-value"

Insert or update JSON keys

yaml
id: kv_put_json
namespace: company.team

tasks:
  - id: update_my_json
    type: io.kestra.plugin.core.kv.Put
    key: my-json-key
    value:
      - key: "json-key-1"
        value: "my new value"
      - key: "nested.field"
        value: 123
Properties

Key to update

Key name within the target namespace

Value payload to write

Maps are deep merged and entry lists can replace or patch JSON fields

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
Defaultfalse

Fail when key is absent

Default false; when true throws before writing if the key does not exist

Default{{ flow.namespace }}

Target namespace

Defaults to the current Flow namespace; accepts expressions