{
  "ml.set_upgrade_mode": {
    "documentation": {
      "url": "https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ml-set-upgrade-mode.html",
      "description": "Set upgrade_mode for ML indices"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_ml/set_upgrade_mode",
          "methods": [
            "POST"
          ]
        }
      ]
    },
    "params": {
      "enabled": {
        "type": "boolean",
        "default": false,
        "description": "Whether to enable upgrade_mode ML setting or not. Defaults to false."
      },
      "timeout": {
        "type": "time",
        "default": "30s",
        "description": "Controls the time to wait before action times out. Defaults to 30 seconds"
      }
    }
  }
}
