Create or update an AI Index
- Base URL
-
https://{kibana_url}
- PUT /api/context_engine/ai_index/{aiIndexId}
- PUT /s/{space_id}/api/context_engine/ai_index/{aiIndexId}
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).
For more information, refer to the Context Engine documentation.
Responses
The request was invalid, for example a malformed dest, an invalid ES|QL source, or an unresolvable connector source or trace.
Elasticsearch denied the index trace lookup outright; the caller lacks index privileges for it.
Context Engine is turned off in this space.