Skip to main content
POST
string
required
Name of the Issue resource (e.g., payment-service-oom-kill-1773933600)
string
Namespace of the incident. When omitted, every namespace is searched (first match).
string
required
Snooze duration in Go duration format (e.g., 30m, 1h, 2h30m). It must be positive; there is no maximum.
The call adds aiops.chatcli.io/snoozed-until (now + duration, RFC 3339) and aiops.chatcli.io/snoozed-by (the role of the calling API key) to the Issue and returns the updated incident. Other body fields are ignored.
The notification controller honors the snooze until snoozed-until:
  • No state-change notification is sent, except Resolved (PagerDuty and OpsGenie need it to close the page).
  • Escalation holds its current level. A level notification that falls inside the snooze is held (annotation platform.chatcli.io/escalation-pending-notify) and goes out when the snooze ends, and the level’s timeout restarts from that moment.
Remediation is not affected. The duration must be positive: zero or a negative value returns 400.

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

Issue name.

Example:

"payment-service-oom-1710860400"

Query Parameters

namespace
string

Namespace of the object. When omitted, all namespaces are searched and the first object with this name is used.

Body

application/json
duration
string
required

Go duration string (e.g. 30m, 1h, 2h30m). Must be positive; no maximum is enforced.

Example:

"30m"

Response

Incident snoozed

apiVersion
string
Example:

"v1"

kind
string
Example:

"Incident"

spec
object
status
object
resourceMeta
object