Skip to main content
POST
Review Postmortem
string
required
PostMortem name (e.g., pm-checkout-service-oom-kill-1773871200)
string
default:"default"
Kubernetes namespace (only default is searched when omitted)
string
Identifier of the reviewer (e.g., a username). Stored in the annotation aiops.chatcli.io/reviewed-by.
string
Review notes. Stored in the annotation aiops.chatcli.io/review-notes, and only when reviewer is also sent.

When to Use

PostMortems are generated when an incident is resolved or contained. This endpoint lets the team:
  1. Mark it as under review: sets status.state to InReview and status.reviewedAt to the current time
  2. Record who is reviewing: the optional reviewer/notes land as annotations on the PostMortem
  3. Tell reviewed from unreviewed postmortems: Open means nobody has looked at it yet
The body is optional. The endpoint does not change the root cause, timeline or other analysis fields; use Developer Feedback to record a corrected root cause. Minimum role: operator. There is no state guard: the call also works on a Closed postmortem and moves it back to InReview.

Authorizations

X-API-Key
string
header
required

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, name, description} (name is the identity recorded on approval decisions); the operator chart creates it only with apiKeys.create: true. Roles: viewer < operator < admin — any other role string is denied everywhere. Changes are picked up within about 30 seconds; deleting both the Secret and the ConfigMap revokes every key. 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

name
string
required

PostMortem name.

Example:

"pm-payment-service-oom-1710860400"

Query Parameters

namespace
string
default:default

Namespace of the object. Defaults to default — pass it for objects in any other namespace.

Body

application/json
reviewer
string

Stored in the annotation aiops.chatcli.io/reviewed-by.

notes
string

Stored in aiops.chatcli.io/review-notes, only together with reviewer.

Response

Postmortem moved to InReview

apiVersion
string
Example:

"v1"

kind
string
Example:

"PostMortem"

spec
object
status
object
resourceMeta
object