{
  "ml.get_model_snapshots": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-model-snapshots",
      "description": "Get model snapshots info"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}",
          "methods": [
            "GET",
            "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 fetch"
            }
          }
        },
        {
          "path": "/_ml/anomaly_detectors/{job_id}/model_snapshots",
          "methods": [
            "GET",
            "POST"
          ],
          "parts": {
            "job_id": {
              "type": "string",
              "description": "The ID of the job to fetch"
            }
          }
        }
      ]
    },
    "params": {
      "from": {
        "type": "int",
        "default": 0,
        "description": "Skips a number of documents"
      },
      "size": {
        "type": "int",
        "default": 100,
        "description": "The default number of documents returned in queries as a string."
      },
      "start": {
        "type": "date",
        "description": "The filter 'start' query parameter"
      },
      "end": {
        "type": "date",
        "description": "The filter 'end' query parameter"
      },
      "sort": {
        "type": "string",
        "description": "Name of the field to sort on"
      },
      "desc": {
        "type": "boolean",
        "default": false,
        "description": "True if the results should be sorted in descending order"
      }
    },
    "body": {
      "description": "Model snapshot selection criteria",
      "required": false
    }
  }
}
