API reference · Access Control & Users v1
POST/api/v1/roles

Create role

Creates one tenant role, optionally with initial permission assignments.

RBAC · role

Request body

Content type: application/json · schema AccessCreateRoleBodyV1

role_namestringRequired
descriptionstring
permissionsarray of string
itemsstring <uuid>
copy_from_role_idstring <uuid>
is_templateboolean

Response body

Success response 201 · schema AccessApiSuccessV1

dataanyOfRequired
anyOf (option 1)object
anyOf (option 2)array of object
itemsobject
metaobject

Response codes

201
Resource created successfully.
400
Validation failed (payload/query/path parsing).
401
API key missing/invalid or key user not found.
403
RBAC denied for role:create.
500
Unexpected controller/service failure.