xpack.ml.setUpgradeMode

edit
client.xpack.ml.setUpgradeMode({
  enabled: boolean,
  timeout: string
})

Reference

enabled

boolean - Whether to enable upgrade_mode ML setting or not. Defaults to false.

timeout

string - Controls the time to wait before action times out. Defaults to 30 seconds