// This file is autogenerated, DO NOT EDIT
// ingest/apis/enrich/put-enrich-policy.asciidoc:30

[source, python]
----
resp = client.enrich.put_policy(
    name="my-policy",
    match={
        "indices": "users",
        "match_field": "email",
        "enrich_fields": [
            "first_name",
            "last_name",
            "city",
            "zip",
            "state"
        ]
    },
)
print(resp)
----
