// This file is autogenerated, DO NOT EDIT
// ingest/match-enrich-policy-type-ex.asciidoc:79

[source, python]
----
resp = client.ingest.put_pipeline(
    id="user_lookup",
    processors=[
        {
            "enrich": {
                "description": "Add 'user' data based on 'email'",
                "policy_name": "users-policy",
                "field": "email",
                "target_field": "user",
                "max_matches": "1"
            }
        }
    ],
)
print(resp)
----
