object role.create(object/array roles)
This method allows to create new roles.
This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See User roles for more information.
(object/array) Roles to create.
Additionally to the standard role properties, the method accepts the following parameters.
(object) Returns an object containing the IDs of the created roles under the
roleids property. The order of the returned IDs matches the order of the passed roles.
Create a role with type "User" and denied access to two UI elements.
CRole::create() in ui/include/classes/api/services/CRole.php.