Discard a downtime as false alarm
POST
/organizations/{org_id}/incidents/{incident_id}/discard-downtime
const url = 'https://api.perstat.io/organizations/example/incidents/example/discard-downtime';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"delete_incident":true,"reason":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.perstat.io/organizations/example/incidents/example/discard-downtime \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "delete_incident": true, "reason": "example" }'Marks a finished downtime window as a false alarm so it is excluded from uptime percentages, day bars, and the status badge; optionally the incident entry is hidden as well. This changes SLA-effective numbers. Requires an owner or admin role and a reason of at least 5 characters; the action is audited and reversible, and returns 409 if the downtime is still open or already discarded.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org_id
required
string
incident_id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
delete_incident
Zugehörige Incident-Meldung ebenfalls aus der öffentlichen Historie entfernen.
boolean
reason
required
Pflicht-Begründung (Audit-Trail).
string
Examplegenerated
{ "delete_incident": true, "reason": "example"}Responses
Section titled “Responses”Läuft noch oder bereits verworfen