Hanzo
OpenapiO11y

Replaces a custom role's description and transaction groups.

Replaces a custom role's description and transaction groups.

PUT /v1/o11y/roles/{id}

Addresshttps://api.hanzo.ai/v1/o11y/roles/{id}
MethodPUT
OperationUpdateRole
AuthAuthorization: Bearer $HANZO_API_KEY

Replaces a custom role's description and transaction groups. Both fields are mandatory — send an empty string or an empty array to clear one — and managed roles cannot be edited.

Request

9 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyes
descriptionbodystringDescription says what the role is for.
transactionGroupsbodyo11y.O11yTransactionGroup[]TransactionGroups are the grants the role carries.
transactionGroups[].objectGroupbodyo11y.O11yObjectGroup
transactionGroups[].objectGroup.resourcebodyo11y.O11yResourceRef
transactionGroups[].objectGroup.resource.kindbodystringKind is the resource kind the type belongs to.
transactionGroups[].objectGroup.resource.typebodystringType is the resource type, e.g.
transactionGroups[].objectGroup.selectorsbodystring[]Selectors pick the instances; a wildcard selects them all.
transactionGroups[].relationbodystringRelation is the verb the grant allows.

Response

StatusBodyMeaning
204no content

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y roles set <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page