Browse Source

ref(alerts): Use OrganizationAlertRuleDetails Endpoint (#54003)

Similar to https://github.com/getsentry/sentry/pull/53630 and a follow
up to https://github.com/getsentry/sentry/pull/53970 to replace the only
usage we have of the `ProjectAlertRuleDetailsEndpoint` DELETE method
with the `OrganizationAlertRuleDetailsEndpoint` one.
Colleen O'Rourke 1 year ago
parent
commit
637e63cfe4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/views/alerts/rules/metric/ruleForm.tsx

+ 1 - 1
static/app/views/alerts/rules/metric/ruleForm.tsx

@@ -756,7 +756,7 @@ class RuleFormContainer extends DeprecatedAsyncComponent<Props, State> {
 
     try {
       await this.api.requestPromise(
-        `/projects/${organization.slug}/${projectId}/alert-rules/${ruleId}/`,
+        `/organizations/${organization.slug}/${projectId}/alert-rules/${ruleId}/`,
         {
           method: 'DELETE',
         }