Shrink index

    When creating new indices with this operation, remember that OpenSearch indices have the following naming restrictions:

    • All letters must be lowercase.
    • Index names can’t begin with underscores (_) or hyphens (-).

    You can use the request body to configure some index settings for the target index. All fields are optional.

    FieldTypeDescription
    aliasObjectSets an alias for the target index. Can have the fields filter, index_routing, is_hidden, is_write_index, , and search_routing. See Index Aliases.
    settingsObjectIndex settings you can apply to your target index. See .