// This file is autogenerated, DO NOT EDIT
// indices/put-mapping.asciidoc:383

[source, python]
----
resp = client.reindex(
    source={
        "index": "my-index-000001"
    },
    dest={
        "index": "my-new-index-000001"
    },
)
print(resp)
----
