Restore a discarded downtime
POST
/organizations/{org_id}/incidents/{incident_id}/restore-downtime
const url = 'https://api.perstat.io/organizations/example/incidents/example/restore-downtime';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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/restore-downtime \ --header 'Authorization: Bearer <token>'Reverts a previously discarded downtime so it counts again toward uptime, daily bars, and status pages. Requires an owner or admin role; returns 409 when the downtime is not currently discarded. The action is written to the activity log. Accepts API keys with the incidents:write scope, subject to current role and resource grants.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org_id
required
string
incident_id
required
string
Responses
Section titled “Responses”Request succeeded. The response has no body.
Authentication is missing or invalid.
The authenticated caller does not have permission to perform this operation.
No accessible resource matches the supplied identifier.
The request conflicts with the current resource state.