Hanzo
OpenapiO11y

Applies an RFC 6902 JSON Patch to a v2-shape dashboard.

Applies an RFC 6902 JSON Patch to a v2-shape dashboard.

PATCH /v1/o11y/dashboards/{id}

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

Applies an RFC 6902 JSON Patch to a v2-shape dashboard. The patch is applied against the postable view (metadata, spec, tags), so individual panels, queries, variables, layouts or tags can be updated without re-sending the rest. Apply is lenient — remove on a missing path is a no-op and add creates any missing parent objects — and the result is still validated. Locked dashboards are rejected. The request body is the bare JSON Patch operations array.

Callers need the editor role; the runtime's own gate enforces it.

Request

7 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the dashboard id from the path.
idbodystringID is the dashboard id from the path.
opsbodyo11y.O11yDashboardPatchOp[]Ops are the JSON Patch operations, applied in order.
ops[].frombodystringFrom is the source JSON Pointer for move and copy; ignored otherwise.
ops[].opbodystringOp is the verb: add, remove, replace, move, copy or test.
ops[].pathbodystringPath is a JSON Pointer into the postable dashboard, e.g.
ops[].valuebodyanyValue is the value to add/replace/test; its type depends on Path.

Response

StatusBodyMeaning
200o11y.O11yDashboardOutok

200 body — 17 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yDashboard
data.createdAtbodystring (date-time)CreatedAt is when the dashboard was created.
data.createdBybodystringCreatedBy is who created it.
data.idbodystringID is the dashboard's id.
data.imagebodystringImage is an optional cover image reference.
data.lockedbodybooleanLocked reports whether the dashboard is locked against edits.
data.namebodystringName is the dashboard's unique internal name.
data.orgIdbodystringOrgID is the org the dashboard belongs to.
data.schemaVersionbodystringSchemaVersion is the dashboard schema version.
data.sourcebodystringSource is where the dashboard came from: user, system or integration.
data.specbodyanySpec is the Perses dashboard spec, carried verbatim as open JSON.
data.tagsbodyo11y.O11yDashboardTag[]Tags are the dashboard's tags.
data.tags[].keybodystringKey is the tag key.
data.tags[].valuebodystringValue is the tag value.
data.updatedAtbodystring (date-time)UpdatedAt is when it last changed.
data.updatedBybodystringUpdatedBy is who last changed it.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y dashboards update <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page