Update notification preferences
curl --request PATCH \
--url https://api.example.com/v1/me/notifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email_enabled": true,
"events": {},
"min_risk_score_for_alert": 50,
"notify_on_new_issue": true,
"notify_on_pattern_detected": true,
"notify_on_prediction": true,
"notify_on_recommendation": true,
"notify_on_report_ready": true,
"pagerduty_enabled": true,
"quiet_hours": {
"end": "<string>",
"start": "<string>",
"timezone": "<string>"
},
"slack_enabled": true,
"slack_webhook_url": "<string>",
"teams_enabled": true,
"teams_webhook_url": "<string>"
}
'import requests
url = "https://api.example.com/v1/me/notifications"
payload = {
"email_enabled": True,
"events": {},
"min_risk_score_for_alert": 50,
"notify_on_new_issue": True,
"notify_on_pattern_detected": True,
"notify_on_prediction": True,
"notify_on_recommendation": True,
"notify_on_report_ready": True,
"pagerduty_enabled": True,
"quiet_hours": {
"end": "<string>",
"start": "<string>",
"timezone": "<string>"
},
"slack_enabled": True,
"slack_webhook_url": "<string>",
"teams_enabled": True,
"teams_webhook_url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email_enabled: true,
events: {},
min_risk_score_for_alert: 50,
notify_on_new_issue: true,
notify_on_pattern_detected: true,
notify_on_prediction: true,
notify_on_recommendation: true,
notify_on_report_ready: true,
pagerduty_enabled: true,
quiet_hours: {end: '<string>', start: '<string>', timezone: '<string>'},
slack_enabled: true,
slack_webhook_url: '<string>',
teams_enabled: true,
teams_webhook_url: '<string>'
})
};
fetch('https://api.example.com/v1/me/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/me/notifications",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'email_enabled' => true,
'events' => [
],
'min_risk_score_for_alert' => 50,
'notify_on_new_issue' => true,
'notify_on_pattern_detected' => true,
'notify_on_prediction' => true,
'notify_on_recommendation' => true,
'notify_on_report_ready' => true,
'pagerduty_enabled' => true,
'quiet_hours' => [
'end' => '<string>',
'start' => '<string>',
'timezone' => '<string>'
],
'slack_enabled' => true,
'slack_webhook_url' => '<string>',
'teams_enabled' => true,
'teams_webhook_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/me/notifications"
payload := strings.NewReader("{\n \"email_enabled\": true,\n \"events\": {},\n \"min_risk_score_for_alert\": 50,\n \"notify_on_new_issue\": true,\n \"notify_on_pattern_detected\": true,\n \"notify_on_prediction\": true,\n \"notify_on_recommendation\": true,\n \"notify_on_report_ready\": true,\n \"pagerduty_enabled\": true,\n \"quiet_hours\": {\n \"end\": \"<string>\",\n \"start\": \"<string>\",\n \"timezone\": \"<string>\"\n },\n \"slack_enabled\": true,\n \"slack_webhook_url\": \"<string>\",\n \"teams_enabled\": true,\n \"teams_webhook_url\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/v1/me/notifications")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email_enabled\": true,\n \"events\": {},\n \"min_risk_score_for_alert\": 50,\n \"notify_on_new_issue\": true,\n \"notify_on_pattern_detected\": true,\n \"notify_on_prediction\": true,\n \"notify_on_recommendation\": true,\n \"notify_on_report_ready\": true,\n \"pagerduty_enabled\": true,\n \"quiet_hours\": {\n \"end\": \"<string>\",\n \"start\": \"<string>\",\n \"timezone\": \"<string>\"\n },\n \"slack_enabled\": true,\n \"slack_webhook_url\": \"<string>\",\n \"teams_enabled\": true,\n \"teams_webhook_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/me/notifications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email_enabled\": true,\n \"events\": {},\n \"min_risk_score_for_alert\": 50,\n \"notify_on_new_issue\": true,\n \"notify_on_pattern_detected\": true,\n \"notify_on_prediction\": true,\n \"notify_on_recommendation\": true,\n \"notify_on_report_ready\": true,\n \"pagerduty_enabled\": true,\n \"quiet_hours\": {\n \"end\": \"<string>\",\n \"start\": \"<string>\",\n \"timezone\": \"<string>\"\n },\n \"slack_enabled\": true,\n \"slack_webhook_url\": \"<string>\",\n \"teams_enabled\": true,\n \"teams_webhook_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"updated_at": "<string>",
"user_id": "<string>",
"digest_frequency": "daily",
"email_enabled": true,
"events": {
"high_confidence_prediction": {
"email": true,
"in_app": true,
"slack": true
},
"issue_escalated_critical": {
"email": true,
"in_app": true,
"slack": true
},
"member_invited": {
"email": true,
"in_app": true,
"slack": false
},
"new_issue_ingested": {
"email": true,
"in_app": true,
"slack": false
},
"new_prediction": {
"email": false,
"in_app": true,
"slack": false
},
"pattern_confirmed": {
"email": false,
"in_app": true,
"slack": false
},
"pattern_detected": {
"email": false,
"in_app": true,
"slack": false
},
"recommendation_pushed": {
"email": false,
"in_app": true,
"slack": false
},
"weekly_digest": {
"email": true,
"in_app": false,
"slack": false
}
},
"min_risk_score_for_alert": 70,
"min_severity_for_alert": "p2",
"notify_on_new_issue": true,
"notify_on_pattern_detected": true,
"notify_on_prediction": true,
"notify_on_recommendation": true,
"notify_on_report_ready": true,
"pagerduty_enabled": false,
"quiet_hours": {
"end": "<string>",
"start": "<string>",
"timezone": "<string>"
},
"slack_enabled": false,
"slack_webhook_url": "<string>",
"teams_enabled": false,
"teams_webhook_url": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}notifications
Update notification preferences
Deep-partial update of notification preferences.
Accepts both the new matrix-aware form (events) and the legacy scalar-only
form (email_enabled, slack_enabled, digest_frequency) for backward
compatibility with the current frontend client mapper.
The per-event events object accepts any subset of the 9 event keys; unknown
keys are rejected with 400 validation_error.
PATCH
/
v1
/
me
/
notifications
Update notification preferences
curl --request PATCH \
--url https://api.example.com/v1/me/notifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email_enabled": true,
"events": {},
"min_risk_score_for_alert": 50,
"notify_on_new_issue": true,
"notify_on_pattern_detected": true,
"notify_on_prediction": true,
"notify_on_recommendation": true,
"notify_on_report_ready": true,
"pagerduty_enabled": true,
"quiet_hours": {
"end": "<string>",
"start": "<string>",
"timezone": "<string>"
},
"slack_enabled": true,
"slack_webhook_url": "<string>",
"teams_enabled": true,
"teams_webhook_url": "<string>"
}
'import requests
url = "https://api.example.com/v1/me/notifications"
payload = {
"email_enabled": True,
"events": {},
"min_risk_score_for_alert": 50,
"notify_on_new_issue": True,
"notify_on_pattern_detected": True,
"notify_on_prediction": True,
"notify_on_recommendation": True,
"notify_on_report_ready": True,
"pagerduty_enabled": True,
"quiet_hours": {
"end": "<string>",
"start": "<string>",
"timezone": "<string>"
},
"slack_enabled": True,
"slack_webhook_url": "<string>",
"teams_enabled": True,
"teams_webhook_url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email_enabled: true,
events: {},
min_risk_score_for_alert: 50,
notify_on_new_issue: true,
notify_on_pattern_detected: true,
notify_on_prediction: true,
notify_on_recommendation: true,
notify_on_report_ready: true,
pagerduty_enabled: true,
quiet_hours: {end: '<string>', start: '<string>', timezone: '<string>'},
slack_enabled: true,
slack_webhook_url: '<string>',
teams_enabled: true,
teams_webhook_url: '<string>'
})
};
fetch('https://api.example.com/v1/me/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/me/notifications",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'email_enabled' => true,
'events' => [
],
'min_risk_score_for_alert' => 50,
'notify_on_new_issue' => true,
'notify_on_pattern_detected' => true,
'notify_on_prediction' => true,
'notify_on_recommendation' => true,
'notify_on_report_ready' => true,
'pagerduty_enabled' => true,
'quiet_hours' => [
'end' => '<string>',
'start' => '<string>',
'timezone' => '<string>'
],
'slack_enabled' => true,
'slack_webhook_url' => '<string>',
'teams_enabled' => true,
'teams_webhook_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/me/notifications"
payload := strings.NewReader("{\n \"email_enabled\": true,\n \"events\": {},\n \"min_risk_score_for_alert\": 50,\n \"notify_on_new_issue\": true,\n \"notify_on_pattern_detected\": true,\n \"notify_on_prediction\": true,\n \"notify_on_recommendation\": true,\n \"notify_on_report_ready\": true,\n \"pagerduty_enabled\": true,\n \"quiet_hours\": {\n \"end\": \"<string>\",\n \"start\": \"<string>\",\n \"timezone\": \"<string>\"\n },\n \"slack_enabled\": true,\n \"slack_webhook_url\": \"<string>\",\n \"teams_enabled\": true,\n \"teams_webhook_url\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/v1/me/notifications")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email_enabled\": true,\n \"events\": {},\n \"min_risk_score_for_alert\": 50,\n \"notify_on_new_issue\": true,\n \"notify_on_pattern_detected\": true,\n \"notify_on_prediction\": true,\n \"notify_on_recommendation\": true,\n \"notify_on_report_ready\": true,\n \"pagerduty_enabled\": true,\n \"quiet_hours\": {\n \"end\": \"<string>\",\n \"start\": \"<string>\",\n \"timezone\": \"<string>\"\n },\n \"slack_enabled\": true,\n \"slack_webhook_url\": \"<string>\",\n \"teams_enabled\": true,\n \"teams_webhook_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/me/notifications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email_enabled\": true,\n \"events\": {},\n \"min_risk_score_for_alert\": 50,\n \"notify_on_new_issue\": true,\n \"notify_on_pattern_detected\": true,\n \"notify_on_prediction\": true,\n \"notify_on_recommendation\": true,\n \"notify_on_report_ready\": true,\n \"pagerduty_enabled\": true,\n \"quiet_hours\": {\n \"end\": \"<string>\",\n \"start\": \"<string>\",\n \"timezone\": \"<string>\"\n },\n \"slack_enabled\": true,\n \"slack_webhook_url\": \"<string>\",\n \"teams_enabled\": true,\n \"teams_webhook_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"updated_at": "<string>",
"user_id": "<string>",
"digest_frequency": "daily",
"email_enabled": true,
"events": {
"high_confidence_prediction": {
"email": true,
"in_app": true,
"slack": true
},
"issue_escalated_critical": {
"email": true,
"in_app": true,
"slack": true
},
"member_invited": {
"email": true,
"in_app": true,
"slack": false
},
"new_issue_ingested": {
"email": true,
"in_app": true,
"slack": false
},
"new_prediction": {
"email": false,
"in_app": true,
"slack": false
},
"pattern_confirmed": {
"email": false,
"in_app": true,
"slack": false
},
"pattern_detected": {
"email": false,
"in_app": true,
"slack": false
},
"recommendation_pushed": {
"email": false,
"in_app": true,
"slack": false
},
"weekly_digest": {
"email": true,
"in_app": false,
"slack": false
}
},
"min_risk_score_for_alert": 70,
"min_severity_for_alert": "p2",
"notify_on_new_issue": true,
"notify_on_pattern_detected": true,
"notify_on_prediction": true,
"notify_on_recommendation": true,
"notify_on_report_ready": true,
"pagerduty_enabled": false,
"quiet_hours": {
"end": "<string>",
"start": "<string>",
"timezone": "<string>"
},
"slack_enabled": false,
"slack_webhook_url": "<string>",
"teams_enabled": false,
"teams_webhook_url": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Available options:
realtime, daily, weekly, never Show child attributes
Show child attributes
Required range:
0 <= x <= 100Available options:
p1, p2, p3, p4 Show child attributes
Show child attributes
Response
Successful Response
Available options:
realtime, daily, weekly, never Show child attributes
Show child attributes
Required range:
0 <= x <= 100Available options:
p1, p2, p3, p4 Show child attributes
Show child attributes
⌘I