// This file is autogenerated, DO NOT EDIT
// data-streams/downsampling-manual.asciidoc:421

[source, python]
----
resp = client.indices.downsample(
    index=".ds-my-data-stream-2023.07.26-000001",
    target_index=".ds-my-data-stream-2023.07.26-000001-downsample",
    config={
        "fixed_interval": "1h"
    },
)
print(resp)
----
