Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(sentry/alerts): drop /projects/ prefix from detector endpoint

justin97a27a53098d
diff --git a/scripts/provision-sentry-alerts.sh b/scripts/provision-sentry-alerts.sh
index ae28e4687..e6e3aa916 100755
--- a/scripts/provision-sentry-alerts.sh
+++ b/scripts/provision-sentry-alerts.sh
@@ -145,7 +145,10 @@ create_or_update_detector() {
local body="$2"
local id="${3:-}"
local method=POST
- local url="${API_BASE}/organizations/${ORG}/projects/${project}/detectors/"
+ # Detectors are organization-scoped. The project lives in the body
+ # (`projectId`), not the URL — `/projects/${project}/detectors/` returns
+ # 200 on POST but 404 on PUT, so the update path always failed.
+ local url="${API_BASE}/organizations/${ORG}/detectors/"
if [ -n "$id" ]; then
method=PUT
url="${url}${id}/"