{
  "ml.revert_model_snapshot": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-revert-model-snapshot",
      "description": "Revert to a snapshot"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert",
          "methods": [
            "POST"
          ],
          "parts": {
            "job_id": {
              "type": "string",
              "description": "The ID of the job to fetch"
            },
            "snapshot_id": {
              "type": "string",
              "description": "The ID of the snapshot to revert to"
            }
          }
        }
      ]
    },
    "params": {
      "delete_intervening_results": {
        "type": "boolean",
        "default": false,
        "description": "Should we reset the results back to the time of the snapshot?"
      }
    },
    "body": {
      "description": "Reversion options",
      "required": false
    }
  }
}
