Hanzo
OpenapiFramework

Grants one user one role in the caller's org — how a member gains rights on a…

Grants one user one role in the caller's org — how a member gains rights on a DocType, since permissions name roles and never users. Manager-only.

POST /v1/framework/roles

Addresshttps://api.hanzo.ai/v1/framework/roles
MethodPOST
Operationpost_framework_roles
AuthAuthorization: Bearer $HANZO_API_KEY

Grants one user one role in the caller's org — how a member gains rights on a DocType, since permissions name roles and never users. Manager-only. Answers 201.

Request

2 fields, body application/json (required).

FieldInTypeRequiredDescription
rolebodystringRole is the granted role's name.
userbodystringUser is the member the role is granted to.

Response

StatusBodyMeaning
201RoleAssignmentcreated

201 body — 2 fields.

FieldInTypeAlwaysDescription
rolebodystringRole is the granted role's name.
userbodystringUser is the member the role is granted to.

Failure carries the platform error shape — see Errors.

Examples

hanzo framework roles create

Framework API · All Hanzo APIs · Interactive reference

How is this guide?

On this page