Hanzo
OpenapiO11y

Applies a partial update to an alert rule, by id, answering with the stored…

Applies a partial update to an alert rule, by id, answering with the stored rule — the common toggle for enabling or muting a rule.

PATCH /v1/o11y/rules/{id}

Addresshttps://api.hanzo.ai/v1/o11y/rules/{id}
MethodPATCH
OperationPatchRuleByID
AuthAuthorization: Bearer $HANZO_API_KEY

Applies a partial update to an alert rule, by id, answering with the stored rule — the common toggle for enabling or muting a rule. Editor gate.

Request

2 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyes
(body)bodyanyyes

Response

StatusBodyMeaning
200o11y.O11yRuleOutok

200 body — 2 fields.

FieldInTypeAlwaysDescription
databodyanyData holds the rule.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y rules update <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page