xpack.migration.upgrade

edit
client.xpack.migration.upgrade({
  index: string,
  wait_for_completion: boolean
})

Reference

index

string - The name of the index

wait_for_completion or waitForCompletion

boolean - Should the request block until the upgrade operation is completed
Default: true