AuthThe Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityPlannedWe plan to add this functionality in a future Elastic Stack update. Subject to changes.Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Creates an AI Index with the given ID, or replaces an existing one. The request body replaces the whole record: omitted fields are removed, and omitted arrays become empty. A managed AI Index cannot be replaced and returns a 409.
Returns a 404 response when Context Engine is turned off in this space (contextEngine:enabled).
automationsobject[] · max items: 100 · default: []
Automations associated with the AI Index. Defaults to an empty array when omitted.
typeenumrequired
Values:workflow
valuestring · min length: 1 · max length: 1024required
The workflow ID.
descriptionstring · max length: 2048
Human-readable description of the AI Index.
destobjectrequired
The data stream or index that backs the AI Index.
typeenumrequired
The type of the backing store. data_stream for a data stream, or index for an index.
Values:data_streamindex
valuestring · min length: 1 · max length: 1024required
The data stream or index (e.g. ai-index-ds-foo, ai-index-idx-foo) the AI Index is attached to. Must name a single data stream or index (no wildcards or comma-separated lists), match type, and start with ai-index-ds- (for data_stream) or ai-index-idx- (for index). The rest of the value must be a valid AI Index ID. System indices are not allowed.
feedback_analysisobject
The recurring feedback analysis, which reads agent signals and proposes improvement actions for the AI Index.
agent_idstring · max length: 256
Agent Builder agent ID that runs this index’s feedback-loop analysis.
allowed_actionsenum[] · max items: 9
Improvement actions the analysis may propose. An empty list is observe-only.