// This file is autogenerated, DO NOT EDIT
// mapping/types/version.asciidoc:19

[source, python]
----
resp = client.indices.create(
    index="my-index-000001",
    mappings={
        "properties": {
            "my_version": {
                "type": "version"
            }
        }
    },
)
print(resp)
----
