// This file is autogenerated, DO NOT EDIT
// data-streams/change-mappings-and-settings.asciidoc:155

[source, python]
----
resp = client.indices.put_mapping(
    index="my-data-stream",
    write_index_only=True,
    properties={
        "message": {
            "type": "text"
        }
    },
)
print(resp)
----
