Create or update an AI Index

Server: https://{kibana_url}
  • PUT /api/context_engine/ai_index/{aiIndexId}
  • PUT /s/{space_id}/api/context_engine/ai_index/{aiIndexId}

Refer to Spaces for more information.

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.

[Required authorization] Route required privileges: contextEngine:write.

Path Parameters

aiIndexId string · min: 1 · max: 256 required

The unique identifier of the AI Index.

Responses