Skip to content

Restore a discarded downtime

POST
/organizations/{org_id}/incidents/{incident_id}/restore-downtime
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.

org_id
required
string
incident_id
required
string

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.