src/Jaspersoft/Service/RoleService.php
public function updateRole(Role $role, $oldName = null)
    {
        $url = self::makeUrl($role->tenantId, $oldName);
        $this->service->prepAndSend($url, array(200, 201), 'PUT', json_encode($role), false, 'application/json', 'application/json');
    }
public function updateRole(Role $role, $oldName = null)
    {
        $url = self::makeUrl($role->tenantId, $oldName);
        $this->service->prepAndSend($url, array(200, 201), 'PUT', json_encode($role), false, 'application/json', 'application/json');
    }
public function updateRole ( Role $ role , $ oldName = null ) { $ url = self :: makeUrl ( $ role -> tenantId , $ oldName ) ; $ this -> service -> prepAndSend ( $ url , array ( 200 , 201 ) , 'PUT' , json_encode ( $ role ) , false , 'application/json' , 'application/json' ) ; }
Update a role currently in existence.

Provide the Role object of the role you wish to change, then a string of the new name
you wish to give the role. You can optionally provide a new tenantId if you wish to change
that as well.

@param \Jaspersoft\Dto\Role\Role $role
@param string $oldName Previous name of role
@throws \Jaspersoft\Exception\RESTRequestException
Update a role currently in existence .