Creates or updates the notification preference for a given channel (email or Slack). When enabling Slack notifications, a valid Slack incoming webhook URL is required.
Permission: score:read (all authenticated users)
Clerk session cookie. Authentication is handled by Clerk. Sign in at https://app.dacard.ai/sign-in to obtain a session.
Notification delivery channel
email, slack Minimum anomaly severity to trigger a notification
low, medium, high Whether this channel is enabled
Slack incoming webhook URL (required when channel=slack and enabled=true)
"https://hooks.slack.com/services/T.../B.../..."
Preference saved
Anomaly notification preference for a delivery channel