// This file is autogenerated, DO NOT EDIT
// scripting/common-script-uses.asciidoc:29

[source, python]
----
resp = client.indices.create(
    index="my-index",
    mappings={
        "properties": {
            "@timestamp": {
                "format": "strict_date_optional_time||epoch_second",
                "type": "date"
            },
            "message": {
                "type": "wildcard"
            }
        }
    },
)
print(resp)
----
