Reindex legacy backing indices
Technical preview
Reindex all legacy backing indices for a data stream. This operation occurs in a persistent task. The persistent task ID is returned immediately and the reindexing work is completed in that task.
POST
/_migration/reindex
curl \
--request POST 'http://api.example.com/_migration/reindex' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"mode":"upgrade","source":{"index":"string"}}'