{
  "ml.upgrade_job_snapshot": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-upgrade-job-snapshot",
      "description": "Upgrade a snapshot"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_upgrade",
          "methods": [
            "POST"
          ],
          "parts": {
            "job_id": {
              "type": "string",
              "description": "The ID of the job"
            },
            "snapshot_id": {
              "type": "string",
              "description": "The ID of the snapshot"
            }
          }
        }
      ]
    },
    "params": {
      "timeout": {
        "type": "time",
        "default": "30m",
        "description": "How long should the API wait for the job to be opened and the old snapshot to be loaded."
      },
      "wait_for_completion": {
        "type": "boolean",
        "default": false,
        "description": "Should the request wait until the task is complete before responding to the caller. Default is false."
      }
    }
  }
}
