diff --git a/posthog/api/hog_function.py b/posthog/api/hog_function.py index b112919b5870c..41ee98ef6e981 100644 --- a/posthog/api/hog_function.py +++ b/posthog/api/hog_function.py @@ -208,8 +208,8 @@ def validate_input_and_filters(attrs: dict): validate_input_and_filters(attrs) if attrs.get("mappings", None) is not None: - if hog_type != "site_destination": - raise serializers.ValidationError({"mappings": "Mappings are only allowed for site destinations."}) + if hog_type not in ["site_destination", "destination"]: + raise serializers.ValidationError({"mappings": "Mappings are only allowed for destinations."}) for mapping in attrs["mappings"]: validate_input_and_filters(mapping)