diff --git a/src/sentry/api/endpoints/project_rule_details.py b/src/sentry/api/endpoints/project_rule_details.py index c15af9d6c2119d..897f6c7503f88a 100644 --- a/src/sentry/api/endpoints/project_rule_details.py +++ b/src/sentry/api/endpoints/project_rule_details.py @@ -251,14 +251,14 @@ def put(self, request: Request, project: Project, rule: Rule) -> Response: conditions.extend(data["filters"]) kwargs = { - "name": data["name"], + "name": data.get("name", rule.label), "environment": data.get("environment"), "project": None, "project_id": project.id, - "action_match": data["actionMatch"], + "action_match": data.get("actionMatch", rule.data.get("action_match")), "filter_match": data.get("filterMatch"), "conditions": conditions, - "actions": data["actions"], + "actions": data.get("actions", rule.data.get("actions", [])), "frequency": data.get("frequency"), } duplicate_rule = find_duplicate_rule(project=project, rule_data=kwargs, rule_id=rule.id)