v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1446252177.2 KB

Creates an index within an OpenSearch Serverless collection. Unlike other OpenSearch indexes, indexes created by this API are automatically configured to conduct automatic semantic enrichment ingestion and search. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html#serverless-semantic-enrichment">About automatic semantic enrichment</a> in the <i>OpenSearch User Guide</i>.

post/#X-Amz-Target=OpenSearchServerless.CreateIndex

Headers

X-Amz-Target'OpenSearchServerless.CreateIndex' required

Request body

idstring required

The unique identifier of the collection in which to create the index.

indexNamestring required

The name of the index to create. Index names must be lowercase and can't begin with underscores (_) or hyphens (-).

indexSchemaobject

The JSON schema definition for the index, including field mappings and settings.

Response

Success

CreateIndexResponse required