diff --git a/alert_grouping_setting.go b/alert_grouping_setting.go index c7e0cb3c..a7f08180 100644 --- a/alert_grouping_setting.go +++ b/alert_grouping_setting.go @@ -107,6 +107,12 @@ func (c *Client) ListAlertGroupingSettings(ctx context.Context, o ListAlertGroup } resp, err := c.get(ctx, "/alert_grouping_settings?"+v.Encode(), nil) + + // If there are no alert grouping settings, return an empty response. + if resp.StatusCode == 404 { + return &ListAlertGroupingSettingsResponse{}, nil + } + if err != nil { return nil, err }