Skip to content

Create or update an incident post-mortem

PUT
/organizations/{org_id}/incidents/{incident_id}/postmortem
curl --request PUT \
--url https://api.perstat.io/organizations/example/incidents/example/postmortem \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "contributing_factors": "example", "impact": "example", "lessons": "example", "root_cause": "example", "summary": "example", "title": "example", "visibility": "example", "what_went_well": "example", "what_went_wrong": "example" }'

Creates or fully replaces the post-mortem document of the incident with title, summary, impact, root cause, contributing factors, what went well and wrong, lessons, and visibility (internal or public). This is a full-replace PUT; all fields must be supplied. Requires the incident command plan capability and returns 402 without it. API keys must cover the whole organization for this operation, because editing a published post-mortem also changes its public content. Accepts API keys with the incidents:write scope, subject to current role and resource grants.

org_id
required
string
incident_id
required
string
Media typeapplication/json

Post-mortem anlegen/aktualisieren (Inhalte; Publizieren ist ein eigener Schritt).

object
contributing_factors
string
impact
string
lessons
string
root_cause
string
summary
string
title
string
visibility

internal (Default) oder public (auf publizierten Status-Seiten sichtbar).

string | null
what_went_well
string
what_went_wrong
string
Examplegenerated
{
"contributing_factors": "example",
"impact": "example",
"lessons": "example",
"root_cause": "example",
"summary": "example",
"title": "example",
"visibility": "example",
"what_went_well": "example",
"what_went_wrong": "example"
}

Request succeeded. The response body contains the result.

Media typeapplication/json

Post-mortem (Nachbereitung) eines Incidents.

object
contributing_factors
required
string
impact
required
string
lessons
required
string
published_at_unix
integer | null format: int64
root_cause
required
string
status
required
string
summary
required
string
title
required
string
visibility
required
string
what_went_well
required
string
what_went_wrong
required
string
Examplegenerated
{
"contributing_factors": "example",
"impact": "example",
"lessons": "example",
"published_at_unix": 1,
"root_cause": "example",
"status": "example",
"summary": "example",
"title": "example",
"visibility": "example",
"what_went_well": "example",
"what_went_wrong": "example"
}

Authentication is missing or invalid.

The request exceeds an entitlement or limit of the current plan.

The authenticated caller does not have permission to perform this operation.

No accessible resource matches the supplied identifier.