Close Postmortem
curl --request POST \
--url http://{host}:{port}/{basePath}/postmortems/{name}/close \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"reviewer": "carlos.silva@empresa.com",
"notes": "All action items assigned. Root cause verified. Approved for compliance archive."
}
'import requests
url = "http://{host}:{port}/{basePath}/postmortems/{name}/close"
payload = {
"reviewer": "carlos.silva@empresa.com",
"notes": "All action items assigned. Root cause verified. Approved for compliance archive."
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
reviewer: 'carlos.silva@empresa.com',
notes: 'All action items assigned. Root cause verified. Approved for compliance archive.'
})
};
fetch('http://{host}:{port}/{basePath}/postmortems/{name}/close', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/{basePath}/postmortems/{name}/close",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reviewer' => 'carlos.silva@empresa.com',
'notes' => 'All action items assigned. Root cause verified. Approved for compliance archive.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://{host}:{port}/{basePath}/postmortems/{name}/close"
payload := strings.NewReader("{\n \"reviewer\": \"carlos.silva@empresa.com\",\n \"notes\": \"All action items assigned. Root cause verified. Approved for compliance archive.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://{host}:{port}/{basePath}/postmortems/{name}/close")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reviewer\": \"carlos.silva@empresa.com\",\n \"notes\": \"All action items assigned. Root cause verified. Approved for compliance archive.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/postmortems/{name}/close")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reviewer\": \"carlos.silva@empresa.com\",\n \"notes\": \"All action items assigned. Root cause verified. Approved for compliance archive.\"\n}"
response = http.request(request)
puts response.read_body{
"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."
}
}
PostMortems
Close PostMortem
Closes a postmortem after review, marking it as finalized and accepted by the team
POST
/
postmortems
/
{name}
/
close
Close Postmortem
curl --request POST \
--url http://{host}:{port}/{basePath}/postmortems/{name}/close \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"reviewer": "carlos.silva@empresa.com",
"notes": "All action items assigned. Root cause verified. Approved for compliance archive."
}
'import requests
url = "http://{host}:{port}/{basePath}/postmortems/{name}/close"
payload = {
"reviewer": "carlos.silva@empresa.com",
"notes": "All action items assigned. Root cause verified. Approved for compliance archive."
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
reviewer: 'carlos.silva@empresa.com',
notes: 'All action items assigned. Root cause verified. Approved for compliance archive.'
})
};
fetch('http://{host}:{port}/{basePath}/postmortems/{name}/close', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/{basePath}/postmortems/{name}/close",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reviewer' => 'carlos.silva@empresa.com',
'notes' => 'All action items assigned. Root cause verified. Approved for compliance archive.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://{host}:{port}/{basePath}/postmortems/{name}/close"
payload := strings.NewReader("{\n \"reviewer\": \"carlos.silva@empresa.com\",\n \"notes\": \"All action items assigned. Root cause verified. Approved for compliance archive.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://{host}:{port}/{basePath}/postmortems/{name}/close")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reviewer\": \"carlos.silva@empresa.com\",\n \"notes\": \"All action items assigned. Root cause verified. Approved for compliance archive.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/postmortems/{name}/close")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reviewer\": \"carlos.silva@empresa.com\",\n \"notes\": \"All action items assigned. Root cause verified. Approved for compliance archive.\"\n}"
response = http.request(request)
puts response.read_body{
"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."
}
}
string
required
Unique postmortem name (e.g.,
PM-20260319-001)string
default:"default"
Kubernetes namespace
string
Identifier of the person closing the postmortem
string
Final notes or summary of the review outcome
PostMortem Lifecycle
Auto-generated (on incident resolution)
↓
State: Open
↓
POST /review → State: InReview
↓
POST /close → State: Closed (terminal)
{
"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."
}
}
{
"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"
}
}
Authorizations
Bearer token issued by the operator. Format: Authorization: Bearer <token>.
Path Parameters
Unique postmortem name.
Example:
"PM-20260319-001"
Query Parameters
Kubernetes namespace.
Body
application/json
⌘I