{
  "indices.put_data_lifecycle": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-indices-put-data-lifecycle",
      "description": "Update data stream lifecycles"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_data_stream/{name}/_lifecycle",
          "methods": [
            "PUT"
          ],
          "parts": {
            "name": {
              "type": "list",
              "description": "A comma-separated list of data streams whose lifecycle will be updated; use `*` to set the lifecycle to all data streams"
            }
          }
        }
      ]
    },
    "params": {
      "expand_wildcards": {
        "type": "list",
        "options": [
          "open",
          "closed",
          "hidden",
          "none",
          "all"
        ],
        "default": "open",
        "description": "Whether wildcard expressions should get expanded to open or closed indices (default: open)"
      },
      "timeout": {
        "type": "time",
        "default": "30s",
        "description": "Explicit timestamp for the document"
      },
      "master_timeout": {
        "type": "time",
        "default": "30s",
        "description": "Specify timeout for connection to master"
      }
    },
    "body": {
      "description": "The data stream lifecycle configuration that consist of the data retention",
      "required": true
    }
  }
}
