Hanzo
OpenapiIam

Changes who is in a role, or which roles it includes.

Changes who is in a role, or which roles it includes. Access changes for everyone in it as soon as the write lands.

PUT /v1/iam/roles/{owner}/{name}

Addresshttps://api.hanzo.ai/v1/iam/roles/{owner}/{name}
MethodPUT
Operationput_iam_roles_by_owner_by_name
AuthAuthorization: Bearer $HANZO_API_KEY

Changes who is in a role, or which roles it includes. Access changes for everyone in it as soon as the write lands. What the role is called does not change, and neither does when it was created.

Request

12 fields, body application/json (required).

FieldInTypeRequiredDescription
ownerpathstringyes
namepathstringyes
createdTimebodystring
descriptionbodystring
displayNamebodystring
domainsbodystring[]
groupsbodystring[]
isEnabledbodyboolean
namebodystring
ownerbodystring
rolesbodystring[]
usersbodystring[]

Response

StatusBodyMeaning
200iam.Roleok

200 body — 14 fields.

FieldInTypeAlwaysDescription
createdAtbodystring (date-time)
createdTimebodystring
deletedbodyboolean
descriptionbodystring
displayNamebodystring
domainsbodystring[]
groupsbodystring[]
idbodystring
isEnabledbodyboolean
namebodystring
ownerbodystring
rolesbodystring[]
updatedAtbodystring (date-time)
usersbodystring[]

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


IAM API · All Hanzo APIs · Interactive reference

How is this guide?

On this page