v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1446252177.2 KB

Updates an existing index in an OpenSearch Serverless collection. This operation allows you to modify the index schema, including adding new fields or changing field mappings. You can also enable 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>.

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

Headers

X-Amz-Target'OpenSearchServerless.UpdateIndex' required

Request body

idstring required

The unique identifier of the collection containing the index to update.

indexNamestring required

The name of the index to update.

indexSchemaobject

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

Response

Success

UpdateIndexResponse required