role.update
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 for more information.
Role properties to be updated.
Additionally to the the method accepts the following parameters.
Returns an object containing the IDs of the updated roles under the property.
Disabling ability to execute scripts
Update role with ID “5”, disable ability to execute scripts.
Response:
Limiting access to API
Update role with ID “5”, deny to call any “create”, “update” or “delete” methods.
CRole::update() in ui/include/classes/api/services/CRole.php.