Create a new access role
POST/roles
Creates a new access role. The caller automatically becomes a role manager, and every role manager is added to UsersAttached.
The request body is validated against a strict allow-list: any property other than the six documented ones is rejected with IPV-1008. Role names must be unique and must not begin with the reserved prefix "SystemRole". Not idempotent: a duplicate role name is rejected.
Request
Responses
- 200
- 400
- 500
Role created. The body carries the new role's identifier.
Response Headers
Input validation or authorization failure. Body is {"Message": " -
Response Headers
Backend failure. Codes: DB-1001 / DB-1002 (the role or user profile could not be persisted), GE-1008 (generic). Body is {"Message": " -