curl --request PUT \
--url https://sreagent.app/api/v1/config/organization_settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ai_budget_warn_percent": 123,
"alert_grouping_ai_enabled": true,
"alert_refire_cooldown_minutes": 720,
"alert_storm_threshold": 123,
"alert_storm_window_seconds": 123,
"auto_close_incidents": true,
"auto_open_incidents": true,
"automation_approval_ttl_minutes": 123,
"incident_severity_floor": "<string>",
"investigation_cooldown_minutes": 123,
"investigation_paused": true,
"monthly_ai_budget_usd": 123,
"restrict_domain_signups": true,
"social_joins_enabled": true,
"timezone": "<string>"
}
'import requests
url = "https://sreagent.app/api/v1/config/organization_settings"
payload = {
"ai_budget_warn_percent": 123,
"alert_grouping_ai_enabled": True,
"alert_refire_cooldown_minutes": 720,
"alert_storm_threshold": 123,
"alert_storm_window_seconds": 123,
"auto_close_incidents": True,
"auto_open_incidents": True,
"automation_approval_ttl_minutes": 123,
"incident_severity_floor": "<string>",
"investigation_cooldown_minutes": 123,
"investigation_paused": True,
"monthly_ai_budget_usd": 123,
"restrict_domain_signups": True,
"social_joins_enabled": True,
"timezone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ai_budget_warn_percent: 123,
alert_grouping_ai_enabled: true,
alert_refire_cooldown_minutes: 720,
alert_storm_threshold: 123,
alert_storm_window_seconds: 123,
auto_close_incidents: true,
auto_open_incidents: true,
automation_approval_ttl_minutes: 123,
incident_severity_floor: '<string>',
investigation_cooldown_minutes: 123,
investigation_paused: true,
monthly_ai_budget_usd: 123,
restrict_domain_signups: true,
social_joins_enabled: true,
timezone: '<string>'
})
};
fetch('https://sreagent.app/api/v1/config/organization_settings', 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://sreagent.app/api/v1/config/organization_settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'ai_budget_warn_percent' => 123,
'alert_grouping_ai_enabled' => true,
'alert_refire_cooldown_minutes' => 720,
'alert_storm_threshold' => 123,
'alert_storm_window_seconds' => 123,
'auto_close_incidents' => true,
'auto_open_incidents' => true,
'automation_approval_ttl_minutes' => 123,
'incident_severity_floor' => '<string>',
'investigation_cooldown_minutes' => 123,
'investigation_paused' => true,
'monthly_ai_budget_usd' => 123,
'restrict_domain_signups' => true,
'social_joins_enabled' => true,
'timezone' => '<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://sreagent.app/api/v1/config/organization_settings"
payload := strings.NewReader("{\n \"ai_budget_warn_percent\": 123,\n \"alert_grouping_ai_enabled\": true,\n \"alert_refire_cooldown_minutes\": 720,\n \"alert_storm_threshold\": 123,\n \"alert_storm_window_seconds\": 123,\n \"auto_close_incidents\": true,\n \"auto_open_incidents\": true,\n \"automation_approval_ttl_minutes\": 123,\n \"incident_severity_floor\": \"<string>\",\n \"investigation_cooldown_minutes\": 123,\n \"investigation_paused\": true,\n \"monthly_ai_budget_usd\": 123,\n \"restrict_domain_signups\": true,\n \"social_joins_enabled\": true,\n \"timezone\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://sreagent.app/api/v1/config/organization_settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ai_budget_warn_percent\": 123,\n \"alert_grouping_ai_enabled\": true,\n \"alert_refire_cooldown_minutes\": 720,\n \"alert_storm_threshold\": 123,\n \"alert_storm_window_seconds\": 123,\n \"auto_close_incidents\": true,\n \"auto_open_incidents\": true,\n \"automation_approval_ttl_minutes\": 123,\n \"incident_severity_floor\": \"<string>\",\n \"investigation_cooldown_minutes\": 123,\n \"investigation_paused\": true,\n \"monthly_ai_budget_usd\": 123,\n \"restrict_domain_signups\": true,\n \"social_joins_enabled\": true,\n \"timezone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sreagent.app/api/v1/config/organization_settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ai_budget_warn_percent\": 123,\n \"alert_grouping_ai_enabled\": true,\n \"alert_refire_cooldown_minutes\": 720,\n \"alert_storm_threshold\": 123,\n \"alert_storm_window_seconds\": 123,\n \"auto_close_incidents\": true,\n \"auto_open_incidents\": true,\n \"automation_approval_ttl_minutes\": 123,\n \"incident_severity_floor\": \"<string>\",\n \"investigation_cooldown_minutes\": 123,\n \"investigation_paused\": true,\n \"monthly_ai_budget_usd\": 123,\n \"restrict_domain_signups\": true,\n \"social_joins_enabled\": true,\n \"timezone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"error": "<string>",
"message": "<string>"
}Update the organization settings
Change one or more preferences; omitted ones keep their value. Ranges are the page’s: storm threshold at least 3, storm window 60..3600 seconds, re-fire cooldown 0..1440 minutes (0 pages on every re-fire), approval TTL 5..1440 minutes, investigation cooldown 0..1440 (0 disables), severity floor critical or high, AI budget at least 1 or null for none, warn percent 1..100. alert_refire_cooldown_minutes is how long after a resolve a re-fire stays quiet: it updates the alert’s existing Slack thread instead of paging again, starts no automatic investigation, and reaches no outbound alerting rule. social_joins_enabled and restrict_domain_signups need a user token.
curl --request PUT \
--url https://sreagent.app/api/v1/config/organization_settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ai_budget_warn_percent": 123,
"alert_grouping_ai_enabled": true,
"alert_refire_cooldown_minutes": 720,
"alert_storm_threshold": 123,
"alert_storm_window_seconds": 123,
"auto_close_incidents": true,
"auto_open_incidents": true,
"automation_approval_ttl_minutes": 123,
"incident_severity_floor": "<string>",
"investigation_cooldown_minutes": 123,
"investigation_paused": true,
"monthly_ai_budget_usd": 123,
"restrict_domain_signups": true,
"social_joins_enabled": true,
"timezone": "<string>"
}
'import requests
url = "https://sreagent.app/api/v1/config/organization_settings"
payload = {
"ai_budget_warn_percent": 123,
"alert_grouping_ai_enabled": True,
"alert_refire_cooldown_minutes": 720,
"alert_storm_threshold": 123,
"alert_storm_window_seconds": 123,
"auto_close_incidents": True,
"auto_open_incidents": True,
"automation_approval_ttl_minutes": 123,
"incident_severity_floor": "<string>",
"investigation_cooldown_minutes": 123,
"investigation_paused": True,
"monthly_ai_budget_usd": 123,
"restrict_domain_signups": True,
"social_joins_enabled": True,
"timezone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ai_budget_warn_percent: 123,
alert_grouping_ai_enabled: true,
alert_refire_cooldown_minutes: 720,
alert_storm_threshold: 123,
alert_storm_window_seconds: 123,
auto_close_incidents: true,
auto_open_incidents: true,
automation_approval_ttl_minutes: 123,
incident_severity_floor: '<string>',
investigation_cooldown_minutes: 123,
investigation_paused: true,
monthly_ai_budget_usd: 123,
restrict_domain_signups: true,
social_joins_enabled: true,
timezone: '<string>'
})
};
fetch('https://sreagent.app/api/v1/config/organization_settings', 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://sreagent.app/api/v1/config/organization_settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'ai_budget_warn_percent' => 123,
'alert_grouping_ai_enabled' => true,
'alert_refire_cooldown_minutes' => 720,
'alert_storm_threshold' => 123,
'alert_storm_window_seconds' => 123,
'auto_close_incidents' => true,
'auto_open_incidents' => true,
'automation_approval_ttl_minutes' => 123,
'incident_severity_floor' => '<string>',
'investigation_cooldown_minutes' => 123,
'investigation_paused' => true,
'monthly_ai_budget_usd' => 123,
'restrict_domain_signups' => true,
'social_joins_enabled' => true,
'timezone' => '<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://sreagent.app/api/v1/config/organization_settings"
payload := strings.NewReader("{\n \"ai_budget_warn_percent\": 123,\n \"alert_grouping_ai_enabled\": true,\n \"alert_refire_cooldown_minutes\": 720,\n \"alert_storm_threshold\": 123,\n \"alert_storm_window_seconds\": 123,\n \"auto_close_incidents\": true,\n \"auto_open_incidents\": true,\n \"automation_approval_ttl_minutes\": 123,\n \"incident_severity_floor\": \"<string>\",\n \"investigation_cooldown_minutes\": 123,\n \"investigation_paused\": true,\n \"monthly_ai_budget_usd\": 123,\n \"restrict_domain_signups\": true,\n \"social_joins_enabled\": true,\n \"timezone\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://sreagent.app/api/v1/config/organization_settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ai_budget_warn_percent\": 123,\n \"alert_grouping_ai_enabled\": true,\n \"alert_refire_cooldown_minutes\": 720,\n \"alert_storm_threshold\": 123,\n \"alert_storm_window_seconds\": 123,\n \"auto_close_incidents\": true,\n \"auto_open_incidents\": true,\n \"automation_approval_ttl_minutes\": 123,\n \"incident_severity_floor\": \"<string>\",\n \"investigation_cooldown_minutes\": 123,\n \"investigation_paused\": true,\n \"monthly_ai_budget_usd\": 123,\n \"restrict_domain_signups\": true,\n \"social_joins_enabled\": true,\n \"timezone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sreagent.app/api/v1/config/organization_settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ai_budget_warn_percent\": 123,\n \"alert_grouping_ai_enabled\": true,\n \"alert_refire_cooldown_minutes\": 720,\n \"alert_storm_threshold\": 123,\n \"alert_storm_window_seconds\": 123,\n \"auto_close_incidents\": true,\n \"auto_open_incidents\": true,\n \"automation_approval_ttl_minutes\": 123,\n \"incident_severity_floor\": \"<string>\",\n \"investigation_cooldown_minutes\": 123,\n \"investigation_paused\": true,\n \"monthly_ai_budget_usd\": 123,\n \"restrict_domain_signups\": true,\n \"social_joins_enabled\": true,\n \"timezone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"error": "<string>",
"message": "<string>"
}Authorizations
An sre_ak_* API key holding the api:admin scope (or api:config_read, which every write refuses with read_only_key).
Body
An alert that fires again within this many minutes of resolving reopens quietly: it updates its Slack thread instead of paging again, starts no automatic investigation, and sends nothing through an outbound alerting rule. It carries on the firing it interrupted, so a rule that has already paged for that firing does not page for it again either, and a timed escalation rule counts the time since the alert last fired loudly, the quiet gaps included. 0 pages on every re-fire.
0 <= x <= 1440critical | high
null hands this organization back to the platform default, which is not the same as 0: zero means no cooldown at all.
null removes the ceiling.
An IANA zone name.
Response
Updated.

