curl --request POST \
--url {scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"acknowledgedBy": "sre-team",
"note": "Rolled back to v1.2.3 and scaled replicas back to 3."
}
'import requests
url = "{scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action"
payload = {
"acknowledgedBy": "sre-team",
"note": "Rolled back to v1.2.3 and scaled replicas back to 3."
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
acknowledgedBy: 'sre-team',
note: 'Rolled back to v1.2.3 and scaled replicas back to 3.'
})
};
fetch('{scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action', 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 => "{scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action",
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([
'acknowledgedBy' => 'sre-team',
'note' => 'Rolled back to v1.2.3 and scaled replicas back to 3.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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 := "{scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action"
payload := strings.NewReader("{\n \"acknowledgedBy\": \"sre-team\",\n \"note\": \"Rolled back to v1.2.3 and scaled replicas back to 3.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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("{scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"acknowledgedBy\": \"sre-team\",\n \"note\": \"Rolled back to v1.2.3 and scaled replicas back to 3.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"acknowledgedBy\": \"sre-team\",\n \"note\": \"Rolled back to v1.2.3 and scaled replicas back to 3.\"\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "PostMortem",
"spec": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "Open",
"duration": "12m0s",
"generatedAt": "2026-03-18T22:12:00Z",
"creationTimestamp": "2026-03-18T22:12:00Z",
"requiredAction": "restore the deployment's replicas to the desired count after fixing the root cause (image rollback, config correction, etc.)"
},
"status": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "Open",
"duration": "12m0s",
"generatedAt": "2026-03-18T22:12:00Z",
"creationTimestamp": "2026-03-18T22:12:00Z",
"requiredAction": "restore the deployment's replicas to the desired count after fixing the root cause (image rollback, config correction, etc.)"
}
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "Bad Request",
"code": 400,
"message": "postmortem does not require human action — nothing to acknowledge"
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "Conflict",
"code": 409,
"message": "postmortem was modified concurrently, please retry"
}
Acknowledge Human Action
Records that a human performed the follow-up a contained incident requires, so its postmortem can be closed
curl --request POST \
--url {scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"acknowledgedBy": "sre-team",
"note": "Rolled back to v1.2.3 and scaled replicas back to 3."
}
'import requests
url = "{scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action"
payload = {
"acknowledgedBy": "sre-team",
"note": "Rolled back to v1.2.3 and scaled replicas back to 3."
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
acknowledgedBy: 'sre-team',
note: 'Rolled back to v1.2.3 and scaled replicas back to 3.'
})
};
fetch('{scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action', 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 => "{scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action",
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([
'acknowledgedBy' => 'sre-team',
'note' => 'Rolled back to v1.2.3 and scaled replicas back to 3.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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 := "{scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action"
payload := strings.NewReader("{\n \"acknowledgedBy\": \"sre-team\",\n \"note\": \"Rolled back to v1.2.3 and scaled replicas back to 3.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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("{scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"acknowledgedBy\": \"sre-team\",\n \"note\": \"Rolled back to v1.2.3 and scaled replicas back to 3.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/postmortems/{name}/ack-human-action")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"acknowledgedBy\": \"sre-team\",\n \"note\": \"Rolled back to v1.2.3 and scaled replicas back to 3.\"\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "PostMortem",
"spec": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "Open",
"duration": "12m0s",
"generatedAt": "2026-03-18T22:12:00Z",
"creationTimestamp": "2026-03-18T22:12:00Z",
"requiredAction": "restore the deployment's replicas to the desired count after fixing the root cause (image rollback, config correction, etc.)"
},
"status": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "Open",
"duration": "12m0s",
"generatedAt": "2026-03-18T22:12:00Z",
"creationTimestamp": "2026-03-18T22:12:00Z",
"requiredAction": "restore the deployment's replicas to the desired count after fixing the root cause (image rollback, config correction, etc.)"
}
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "Bad Request",
"code": 400,
"message": "postmortem does not require human action — nothing to acknowledge"
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "Conflict",
"code": 409,
"message": "postmortem was modified concurrently, please retry"
}
pm-checkout-service-oom-kill-1773871200)default is searched when omitted)aiops.chatcli.io/human-action-acknowledged-by.aiops.chatcli.io/human-action-note.When to Use
When the operator contains an incident (for example, it silences a crashing workload instead of fixing it), the Issue ends in stateContained and its PostMortem gets requiresHumanAction: true plus a requiredAction describing what a person must do. While that flag is set and not acknowledged, the PostMortem controller reverts any Closed state back to Open.
After doing the follow-up, call this endpoint. It:
- Sets the annotations
aiops.chatcli.io/human-action-acknowledged: "true"andaiops.chatcli.io/human-action-acknowledged-at(UTC, RFC 3339), plus-acknowledged-byandhuman-action-notewhen sent - Clears
status.requiresHumanAction(requiredActionis kept as history)
operator.
kubectl annotate has the same effect on the controller (values true, True, yes, ack and acknowledged are accepted), but leaves status.requiresHumanAction set.{
"apiVersion": "v1",
"kind": "PostMortem",
"spec": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "Open",
"duration": "12m0s",
"generatedAt": "2026-03-18T22:12:00Z",
"creationTimestamp": "2026-03-18T22:12:00Z",
"requiredAction": "restore the deployment's replicas to the desired count after fixing the root cause (image rollback, config correction, etc.)"
},
"status": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "Open",
"duration": "12m0s",
"generatedAt": "2026-03-18T22:12:00Z",
"creationTimestamp": "2026-03-18T22:12:00Z",
"requiredAction": "restore the deployment's replicas to the desired count after fixing the root cause (image rollback, config correction, etc.)"
}
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "Bad Request",
"code": 400,
"message": "postmortem does not require human action — nothing to acknowledge"
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "Conflict",
"code": 409,
"message": "postmortem was modified concurrently, please retry"
}
Authorizations
API key sent in the X-API-Key header. Keys are read from the Secret chatcli-operator-secrets, key api-keys (fallback: ConfigMap chatcli-operator-config, key api-keys) in the operator namespace, as a YAML list of {key, role, description}; no chart creates it. Roles: viewer < operator < admin — any other role string is denied everywhere. Changes are picked up within about 30 seconds. With no keys configured every /api/ call returns 401, unless CHATCLI_OPERATOR_DEV_MODE=true, which grants admin without a key (development only).
Path Parameters
PostMortem name.
"pm-payment-service-oom-1710860400"
Query Parameters
Namespace of the object. Defaults to default — pass it for objects in any other namespace.