cURL
curl --request POST \ --url https://api.example.com/api/v1/postmortems/{name}/close \ --header 'Content-Type: application/json' \ --data ' { "reviewer": "<string>", "notes": "<string>" } '
{ "apiVersion": "v1", "kind": "PostMortem", "metadata": { "name": "PM-20260319-001", "namespace": "production" }, "status": { "state": "Closed", "reviewer": "carlos.silva@empresa.com", "closedAt": "2026-03-19T18:00:00Z", "notes": "All action items assigned. Root cause verified. Approved for compliance archive." } }
Fecha um postmortem após revisao, marcando-o como finalizado e aceito pela equipe
PM-20260319-001
Auto-generated (on incident resolution) ↓ State: Open ↓ POST /review → State: InReview ↓ POST /close → State: Closed (terminal)
{ "apiVersion": "v1", "kind": "Error", "error": { "code": 409, "message": "PostMortem already closed", "details": "The postmortem 'PM-20260319-001' was already closed at 2026-03-19T18:00:00Z" } }