Create or update an incident post-mortem
const url = 'https://api.perstat.io/organizations/example/incidents/example/postmortem';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"contributing_factors":"example","impact":"example","lessons":"example","root_cause":"example","summary":"example","title":"example","visibility":"example","what_went_well":"example","what_went_wrong":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Post-mortem anlegen/aktualisieren (Inhalte; Publizieren ist ein eigener Schritt).
object
internal (Default) oder public (auf publizierten Status-Seiten sichtbar).
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"}Responses
Section titled “Responses”Request succeeded. The response body contains the result.
Post-mortem (Nachbereitung) eines Incidents.
object
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.