Skip to main content
PUT
string
required
Runbook name (e.g., oomkill-standard)
string
default:"default"
Namespace of the runbook (other namespaces are not searched)
This is a replace, not a patch: description, trigger and steps are always overwritten with what you send (an omitted field becomes empty, and an empty trigger is rejected by the CRD). Only maxAttempts (when greater than 0) and labels (when present) are optional. name and namespace in the body are ignored.
string
Purpose of the runbook
object
required
When the runbook applies. All three fields are required by the CRD.
object[]
required
Ordered steps (replaces the whole list)
integer
default:"unchanged"
New maximum number of remediation attempts; ignored when 0 or omitted
object
Replaces all labels when provided; existing labels are kept when omitted

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

Runbook name.

Example:

"oom-standard"

Query Parameters

namespace
string
default:default

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

Body

application/json
name
string
required

Required on create; ignored on update.

Example:

"oom-standard"

namespace
string
default:default

Create only; ignored on update.

description
string
trigger
object
steps
object[]
maxAttempts
integer

Defaults to 3 on create; on update only values > 0 are applied.

labels
object

Response

Runbook updated

apiVersion
string
Example:

"v1"

kind
string
Example:

"Runbook"

spec
object
resourceMeta
object