Supercheck LogoSupercheck
AI SRE

Save an incident post-mortem

PUT
/api/sre/incidents/{id}/postmortem

Saves the post-mortem sections of a resolved incident and records an audit event. A section left out is saved empty, so send every section you want to keep. Send expectedUpdatedAt (the updatedAt from the GET response) to reject the save with 409 when the post-mortem changed since you read it. Only saves that send it are protected; a save without it overwrites.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Project-scoped CLI token (sck_live_* or sck_test_*) for documented API operations that accept bearer authentication. Interactive browser operations may require a session cookie. Trigger keys (sck_trigger_* / legacy job_*) are accepted only by job trigger endpoints.

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
sections*
expectedUpdatedAt?|

The updatedAt of the post-mortem you read (send null only when GET returned postmortem: null; omit the field to skip the check). The save fails with 409 if it changed since.

Lengthlength <= 64

Response Body

Saved

application/json
  1. response
success?boolean
postmortem?
Example Request
curl -X PUT 'https://app.supercheck.io/api/sre/incidents/497f6eca-6276-4993-bfeb-53cbbbba6f08/postmortem' \  -H 'Content-Type: application/json' \  -d '{  "sections": {}}'
Example Response
{  "success": true,  "postmortem": {}}