Permissions

Create a new role

Create a new role for role-based access control

post/roles

Request body

_idstring

MongoDB ObjectId represented as a hexadecimal string

namestring

Name of the role

descriptionstring

Description of the role

created_atstring date-time
updated_atstring date-time
created_bystring

MongoDB ObjectId represented as a hexadecimal string

updated_bystring

MongoDB ObjectId represented as a hexadecimal string

Response

Role created successfully

codeinteger
messagestring
dataobject

Changes