curl --request POST \
--url https://api.suntropy.ai/v2/connect/monitoring/alarm-silences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"plantId": "<string>",
"hours": 360.5,
"reason": "<string>",
"alarmId": "<string>",
"chatUid": "<string>"
}
'import requests
url = "https://api.suntropy.ai/v2/connect/monitoring/alarm-silences"
payload = {
"plantId": "<string>",
"hours": 360.5,
"reason": "<string>",
"alarmId": "<string>",
"chatUid": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
plantId: '<string>',
hours: 360.5,
reason: '<string>',
alarmId: '<string>',
chatUid: '<string>'
})
};
fetch('https://api.suntropy.ai/v2/connect/monitoring/alarm-silences', 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.suntropy.ai/v2/connect/monitoring/alarm-silences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'plantId' => '<string>',
'hours' => 360.5,
'reason' => '<string>',
'alarmId' => '<string>',
'chatUid' => '<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.suntropy.ai/v2/connect/monitoring/alarm-silences"
payload := strings.NewReader("{\n \"plantId\": \"<string>\",\n \"hours\": 360.5,\n \"reason\": \"<string>\",\n \"alarmId\": \"<string>\",\n \"chatUid\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.suntropy.ai/v2/connect/monitoring/alarm-silences")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"plantId\": \"<string>\",\n \"hours\": 360.5,\n \"reason\": \"<string>\",\n \"alarmId\": \"<string>\",\n \"chatUid\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.suntropy.ai/v2/connect/monitoring/alarm-silences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"plantId\": \"<string>\",\n \"hours\": 360.5,\n \"reason\": \"<string>\",\n \"alarmId\": \"<string>\",\n \"chatUid\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Silence Alexandria's alarm reviews
Required permission: monitoring:write. Billed through Suntropy Connect usage billing; the account is enrolled automatically on first use.
Stops Alexandria’s AUTOMATIC reviews (the conversations and emails opened when alarm watching detects a new alarm) for one recurring alarm, or for every alarm of a plant, for some hours. The alarms are still read, stored and listed by list_alarms; only the automatic review is skipped (and counted). An alarm is identified by plant + device + code, so its repetitions are silenced even when the manufacturer gives them new ids. Give alarmId (alm_… from list_alarms or from the alarm-watch message) to silence that alarm; omit it to silence the whole plant. Silencing the same thing again replaces the deadline. Meant for alarms that need no attention (intermittent, grid-side, at night, already recovered), not for a plant that does not produce in daylight or a safety fault. get_alarm_watch lists the active silences.
Same operation as the silence_alarm_reviews tool of the Suntropy Connect monitoring MCP server.
curl --request POST \
--url https://api.suntropy.ai/v2/connect/monitoring/alarm-silences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"plantId": "<string>",
"hours": 360.5,
"reason": "<string>",
"alarmId": "<string>",
"chatUid": "<string>"
}
'import requests
url = "https://api.suntropy.ai/v2/connect/monitoring/alarm-silences"
payload = {
"plantId": "<string>",
"hours": 360.5,
"reason": "<string>",
"alarmId": "<string>",
"chatUid": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
plantId: '<string>',
hours: 360.5,
reason: '<string>',
alarmId: '<string>',
chatUid: '<string>'
})
};
fetch('https://api.suntropy.ai/v2/connect/monitoring/alarm-silences', 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.suntropy.ai/v2/connect/monitoring/alarm-silences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'plantId' => '<string>',
'hours' => 360.5,
'reason' => '<string>',
'alarmId' => '<string>',
'chatUid' => '<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.suntropy.ai/v2/connect/monitoring/alarm-silences"
payload := strings.NewReader("{\n \"plantId\": \"<string>\",\n \"hours\": 360.5,\n \"reason\": \"<string>\",\n \"alarmId\": \"<string>\",\n \"chatUid\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.suntropy.ai/v2/connect/monitoring/alarm-silences")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"plantId\": \"<string>\",\n \"hours\": 360.5,\n \"reason\": \"<string>\",\n \"alarmId\": \"<string>\",\n \"chatUid\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.suntropy.ai/v2/connect/monitoring/alarm-silences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"plantId\": \"<string>\",\n \"hours\": 360.5,\n \"reason\": \"<string>\",\n \"alarmId\": \"<string>\",\n \"chatUid\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Plant id as returned by list_plants, e.g. huawei:3f2a9c1e:NE=33554875.
How long, in hours (1-720). Keep it short: 6-72 h is usually enough.
1 <= x <= 720Why, in one sentence, for the people of the account.
500alm_… of the alarm to silence. Omit to silence every alarm of the plant.
The conversation that decided it, if known.