POST /v1/searchIndexes
Create a Search Index
Create a new search index within a search service
POST
POST /v1/searchIndexes
Documentation Index
Fetch the complete documentation index at: https://openmetadata-codex-audit-docs-codebase-alignment.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Create a Search Index
Create a new search index within a search service.Body Parameters
Name of the search index. Must be unique within the parent search service.
Fully qualified name of the parent SearchService (e.g.,
elasticsearch_sample).Array of field objects defining the index schema.
Human-readable display name for the search index.
Description of the search index in Markdown format.
Array of owner references (users or teams) to assign to the search index.
Fully qualified name of the domain to assign for governance purposes.
Array of classification tags to apply to the search index.
Custom property values defined by your organization’s metadata schema.
POST /v1/searchIndexes
Returns
Returns the created search index object with all specified properties and system-generated fields.Response
Unique identifier for the search index (UUID format).
Search index name.
Fully qualified name in format
service.indexName.Human-readable display name.
Description of the search index in Markdown format.
Reference to the parent search service.
Array of field definitions for the index schema.
Type of search service (e.g., ElasticSearch, OpenSearch).
List of owners assigned to the search index.
Domain assignments for governance.
Classification tags applied to the search index.
Custom property values defined by your organization’s metadata schema.
Version number for the entity (starts at 0.1).
Create or Update (PUT)
UsePUT /v1/searchIndexes instead of POST to perform an upsert. If a search index with the same fullyQualifiedName already exists, it will be updated; otherwise, a new search index is created. The request body is the same as POST.
PUT will not return a 409 conflict error if the entity already exists — it will update the existing entity instead.Bulk Create or Update (PUT)
UsePUT /v1/searchIndexes/bulk to create or update multiple search indexes in a single request. The request body is an array of create request objects.
Error Handling
| Code | Error Type | Description |
|---|---|---|
400 | BAD_REQUEST | Invalid request body or missing required fields |
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to create search indexes |
409 | ENTITY_ALREADY_EXISTS | Search index with same name already exists in service (POST only) |