stack kb context-engine put-context-engine-ai-index-aiindexid cli command
Auth required
Idempotent
Scope: global
elastic stack kb context-engine put-context-engine-ai-index-aiindexid \
--ai-index-id <ai-index-id> \
--dest <dest> \
[options]
Create or update an AI Index
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--ai-index-idstringrequired- The unique identifier of the AI Index.
--deststringrequired- The data stream or index that backs the AI Index.
--automationsstring[]-
Automations associated with the AI Index. Defaults to an empty array when omitted.
Repeatable: pass
--automationsmultiple times to supply more than one value --descriptionstring- Human-readable description of the AI Index.
--feedback-analysisstring- The recurring feedback analysis, which reads agent signals and proposes improvement actions for the AI Index.
--sourcesstring[]-
Additional sources that provide context for the AI Index. Defaults to an empty array when omitted.
Repeatable: pass
--sourcesmultiple times to supply more than one value --tracesstring[]-
Trace sources linked to this AI Index. A write replaces the whole array. Defaults to an empty array when omitted.
Repeatable: pass
--tracesmultiple times to supply more than one value --input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--no-validate- skip input validation and send the request as-is
--output-fieldsstring- comma-separated list of fields to include in output (dot-notation supported)
--output-templatestring- Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--json-
output as JSON