{
  "ml.put_datafeed": {
    "documentation": {
      "url": "https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ml-put-datafeed.html",
      "description": "Create a datafeed"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_ml/datafeeds/{datafeed_id}",
          "methods": [
            "PUT"
          ],
          "parts": {
            "datafeed_id": {
              "type": "string",
              "description": "The ID of the datafeed to create"
            }
          }
        }
      ]
    },
    "body": {
      "description": "The datafeed config",
      "required": true
    },
    "params": {
      "ignore_unavailable": {
        "type": "boolean",
        "default": false,
        "description": "Ignore unavailable indexes (default: false)"
      },
      "allow_no_indices": {
        "type": "boolean",
        "default": true,
        "description": "Ignore if the source indices expressions resolves to no concrete indices (default: true)"
      },
      "ignore_throttled": {
        "deprecated": {
          "version": "7.16.0",
          "description": "This parameter is deprecated because frozen indices have been deprecated."
        },
        "type": "boolean",
        "default": true,
        "description": "Ignore indices that are marked as throttled (default: true)"
      },
      "expand_wildcards": {
        "type": "list",
        "options": [
          "open",
          "closed",
          "hidden",
          "none",
          "all"
        ],
        "default": "open",
        "description": "Whether source index expressions should get expanded to open or closed indices (default: open)"
      }
    }
  }
}
