Hanzo
OpenapiO11y

Assigns a role, named by its id, to a service account.

Assigns a role, named by its id, to a service account.

POST /v1/o11y/service_accounts/{id}/roles

Addresshttps://api.hanzo.ai/v1/o11y/service_accounts/{id}/roles
MethodPOST
OperationCreateServiceAccountRole
AuthAuthorization: Bearer $HANZO_API_KEY

Assigns a role, named by its id, to a service account.

Request

2 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesRoleID is the id of the role to assign.
idbodystringRoleID is the id of the role to assign.

Response

StatusBodyMeaning
204no content

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y service_accounts roles create <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page