{
  "ml.get_calendars": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-calendars",
      "description": "Get calendar configuration info"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_ml/calendars",
          "methods": [
            "GET",
            "POST"
          ]
        },
        {
          "path": "/_ml/calendars/{calendar_id}",
          "methods": [
            "GET",
            "POST"
          ],
          "parts": {
            "calendar_id": {
              "type": "string",
              "description": "The ID of the calendar to fetch"
            }
          }
        }
      ]
    },
    "params": {
      "from": {
        "type": "int",
        "default": 0,
        "description": "skips a number of calendars"
      },
      "size": {
        "type": "int",
        "default": 10000,
        "description": "specifies a max number of calendars to get"
      }
    },
    "body": {
      "description": "The from and size parameters optionally sent in the body",
      "required": false
    }
  }
}
