object role.update(object/array roles)
This method allows to update existing 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) Role properties to be updated.
roleid property must be defined for each role, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.
Additionally to the standard role properties the method accepts the following parameters.
|rules||array||Access rules to replace the current access rules assigned to the role.|
(object) Returns an object containing the IDs of the updated roles under the
Update role with ID "5", disable ability to execute scripts.
Update role with ID "5", deny to call any "create", "update" or "delete" methods.
CRole::update() in ui/include/classes/api/services/CRole.php.