// This file is autogenerated, DO NOT EDIT
// mapping/params/dynamic.asciidoc:9

[source, python]
----
resp = client.index(
    index="my-index-000001",
    id="1",
    document={
        "username": "johnsmith",
        "name": {
            "first": "John",
            "last": "Smith"
        }
    },
)
print(resp)

resp1 = client.indices.get_mapping(
    index="my-index-000001",
)
print(resp1)
----
